Example #1
0
 protected override void EstablishContext()
 {
     executor = new Executor();
     taskList = new TaskList();
     view = MockRepository.GenerateMock<IToDoListView>();
     presenter = new ToDoListPresenter(view, taskList, executor);
 }
Example #2
0
        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();
        }