Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     movieListPresenter.OnLoaded();
 }