public void TestLoadCustomers() { var repository = new TaskRepository(new StubTaskStore()); var target = new TaskListViewModel(repository); Task task = target.Tasks[0]; }
protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); MainWindow window = new MainWindow(); var repository = new TaskRepository(new InMemoryTaskStore()); var viewModel = new TaskListViewModel(repository); window.DataContext = viewModel; window.Show(); }