blob: a62af6f029c8f843a732d32d0b060df4fd56dcb9 (
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
31
32
33
|
using developwithpassion.bdd.contexts;
using Gorilla.Commons.Testing;
using MoMoney.Presentation.Views.Shell;
using MoMoney.Presentation.Winforms.Resources;
using MoMoney.Service.Infrastructure.Eventing;
namespace MoMoney.Presentation.Presenters.Shell
{
[Concern(typeof (NotificationIconPresenter))]
public abstract class behaves_like_notification_icon_presenter : concerns_for<INotificationIconPresenter, NotificationIconPresenter>
{
//public override INotificationIconPresenter create_sut()
//{
// return new NotificationIconPresenter(view, broker);
//}
context c = () =>
{
view = the_dependency<INotificationIconView>();
broker = the_dependency<IEventAggregator>();
};
protected static INotificationIconView view;
protected static IEventAggregator broker;
}
public class when_initializing_the_notification_icon : behaves_like_notification_icon_presenter
{
it should_ask_the_view_to_display_the_correct_icon_and_text = () => view.was_told_to(v => v.display(ApplicationIcons.Application, "mokhan.ca"));
because b = () => sut.run();
}
}
|