summaryrefslogtreecommitdiff
path: root/product/Presentation/Presenters/StatusBarPresenterSpecs.cs
blob: 5cd1ea67d28a8883a6cec0ef566f84c706d32e0d (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
using developwithpassion.bdd.contexts;
using Gorilla.Commons.Testing;
using MoMoney.Presentation.Model.messages;
using MoMoney.Presentation.Views;
using MoMoney.Presentation.Winforms.Resources;

namespace MoMoney.Presentation.Presenters
{
    [Concern(typeof (StatusBarPresenter))]
    public class when_initializing_the_status_bar : concerns_for<IStatusBarPresenter, StatusBarPresenter>
    {
        it should_display_a_ready_message =
            () => view.was_told_to(v => v.display(ApplicationIcons.green_circle, "Ready"));

        context c = () =>
        {
            view = the_dependency<IStatusBarView>();
        };

        because b = () => sut.notify(new NewProjectOpened(""));

        static IStatusBarView view;
    }
}