main
 1using developwithpassion.bdd.contexts;
 2using Gorilla.Commons.Testing;
 3using MoMoney.Presentation.Model.Navigation;
 4using momoney.presentation.views;
 5
 6namespace momoney.presentation.presenters
 7{
 8    [Concern(typeof (NavigationPresenter))]
 9    public class when_building_the_navigation_tree : concerns_for<INavigationPresenter, NavigationPresenter>
10    {
11        it should_visit_the_root_node_of_the_tree = () => view.was_told_to(x => x.accept(tree_view_visitor));
12
13        context c = () =>
14        {
15            view = the_dependency<INavigationView>();
16            tree_view_visitor = the_dependency<INavigationTreeVisitor>();
17        };
18
19        because b = () => sut.run();
20
21        static INavigationView view;
22        static INavigationTreeVisitor tree_view_visitor;
23    }
24}