Exemplo n.º 1
0
        public void Descriptionid0Test()
        {
            Mock <IMovieRepository>     mock1 = new Mock <IMovieRepository>();
            Mock <IHallMovieRepository> mock2 = new Mock <IHallMovieRepository>();

            MovieController target = new MovieController(mock1.Object, mock2.Object);

            var result = target.Description(0) as ViewResult;

            result.ViewName.Equals("Description");
        }
Exemplo n.º 2
0
        public void DescriptionId3Test()
        {
            Mock <IMovieRepository>     mock1 = new Mock <IMovieRepository>();
            Mock <IHallMovieRepository> mock2 = new Mock <IHallMovieRepository>();

            MovieController target = new MovieController(mock1.Object, mock2.Object);

            mock1.Setup(m => m.GetOneMovie(1)).Returns(new Movie {
            });

            var result = target.Description(0) as ViewResult;

            result.ViewName.Equals("Description");
        }