예제 #1
0
        public ViewResult Index()
        {
            var          movieRepo = new MovieRepository();
            List <Movie> movies    = movieRepo.FindAllMovies();

            return(View("Index", new HomePageModel(movies, customer)));
        }
예제 #2
0
        public void ShouldHaveThreeMovies()
        {
            var          repository = new MovieRepository();
            List <Movie> movies     = repository.FindAllMovies();

            Assert.AreEqual(3, movies.Count);
        }