public ViewResult Index() { var movieRepo = new MovieRepository(); List <Movie> movies = movieRepo.FindAllMovies(); return(View("Index", new HomePageModel(movies, customer))); }
public void ShouldHaveThreeMovies() { var repository = new MovieRepository(); List <Movie> movies = repository.FindAllMovies(); Assert.AreEqual(3, movies.Count); }