public void ShouldLoadMoviesFromRepoOnStart() { var movies = new List <Movie>(new[] { new Movie { Title = "Star Wars" } }); mockRepository.Setup(r => r.FindAll()).Returns(movies); movieListPresenter.OnLoaded(); mockView.VerifySet(v => v.Movies = movies); }
private void Window_Loaded(object sender, RoutedEventArgs e) { movieListPresenter.OnLoaded(); }