protected override void EstablishContext() { executor = new Executor(); taskList = new TaskList(); view = MockRepository.GenerateMock<IToDoListView>(); presenter = new ToDoListPresenter(view, taskList, executor); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); var taskList = new TaskList(); var view = new ToDoListView(); var executor = new BackgroundUnitOfWorkSessionHandlingMagicalExecutor(); var presenter = new ToDoListPresenter(view, taskList, executor); presenter.ShowView(); Application.Run(); }