Пример #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);
        }