main
1using developwithpassion.bdd.contexts;
2using Gorilla.Commons.Testing;
3using MbUnit.Framework;
4using MoMoney.Presentation.Core;
5using MoMoney.Service.Infrastructure.Threading;
6
7namespace momoney.presentation.presenters
8{
9 public class RunTheSpecs
10 {
11 [Ignore]
12 [Concern(typeof (RunThe<>))]
13 public class when_initializing_different_regions_of_the_user_interface :
14 concerns_for<IRunThe<IPresenter>, RunThe<IPresenter>>
15 {
16 //it should_initialize_the_presenter_that_controls_that_region = () => controller.was_told_to(x => x.run<IPresenter>());
17 it should_initialize_the_presenter_that_controls_that_region = () => processor.was_told_to(x => x.add(() => controller.run<IPresenter>()));
18
19 context c = () =>
20 {
21 controller = the_dependency<IApplicationController>();
22 processor = the_dependency<CommandProcessor>();
23 };
24
25 because b = () => sut.run();
26
27 static IApplicationController controller;
28 static CommandProcessor processor;
29 }
30 }
31}