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