main
1using developwithpassion.bdd.contexts;
2using Gorilla.Commons.Testing;
3using momoney.presentation.views;
4using MoMoney.Service.Infrastructure.Eventing;
5
6namespace momoney.presentation.presenters
7{
8 public class GettingStartedPresenterSpecs
9 {
10 public class behaves_like_the_getting_started_presenter :
11 concerns_for<IGettingStartedPresenter, GettingStartedPresenter>
12 {
13 context c = () =>
14 {
15 view = the_dependency<IGettingStartedView>();
16 broker = the_dependency<IEventAggregator>();
17 };
18
19 static protected IEventAggregator broker;
20 static protected IGettingStartedView view;
21 }
22
23 public class when_a_new_project_is_opened : behaves_like_the_getting_started_presenter
24 {
25 it should_display_the_getting_started_screen = () => view.was_told_to(x => x.attach_to(sut));
26
27 because b = () => sut.run();
28 }
29 }
30}