Пример #1
0
        public static void Main()
        {
            MainWindow main = new MainWindow();
            TodoListView view = new TodoListView();
            TodoListViewModel viewModel = new TodoListViewModel(view, new TodoListFakeService());
            viewModel.Initialize();
            main.AddChild(view);

            Application app = new Application();
            app.Run(main);
        }
Пример #2
0
 public TodoListViewModelFixture()
 {
     _view = new Mock<ITodoListView> { DefaultValue = DefaultValue.Mock };
     _service = new Mock<ITodoListService> { DefaultValue = DefaultValue.Mock };
     _viewModel = new TodoListViewModel(_view.Object, _service.Object);
 }