main
 1using developwithpassion.bdd.contexts;
 2using Gorilla.Commons.Testing;
 3using momoney.presentation.model.eventing;
 4using MoMoney.Presentation.Views;
 5using MoMoney.Presentation.Winforms.Resources;
 6
 7namespace MoMoney.Presentation.Presenters
 8{
 9    [Concern(typeof (StatusBarPresenter))]
10    public class when_initializing_the_status_bar : concerns_for<IStatusBarPresenter, StatusBarPresenter>
11    {
12        it should_display_a_ready_message =
13            () => view.was_told_to(v => v.display(ApplicationIcons.green_circle, "Ready"));
14
15        context c = () =>
16        {
17            view = the_dependency<IStatusBarView>();
18        };
19
20        because b = () => sut.notify(new NewProjectOpened(""));
21
22        static IStatusBarView view;
23    }
24}