public void ShouldAddAMovie() { mockView.SetupGet(v => v.MovieTitle).Returns("Star Wars"); movieListPresenter.Save(); mockRepository.Verify(r => r.Save(new Movie { Title = "Star Wars" })); VerifyViewRefreshed(); }
private void saveButton_Click(object sender, RoutedEventArgs e) { movieListPresenter.Save(); }