Exemple #1
0
        public void TestAddMovies()
        {
            MovieController objMovieController = new MovieController();

            MovieAPI.MovieData objMovieData = new MovieAPI.MovieData();
            objMovieData.Language    = "ENG";
            objMovieData.MovieId     = 26;
            objMovieData.Title       = "Harry Pottar 26";
            objMovieData.ReleaseYear = 2008;
            objMovieData.Duration    = "3:00";

            bool blnResult = objMovieController.AddMovieDetails(objMovieData);

            if (blnResult == true)
            {
                Assert.Pass("One Record added successfully");
            }
            else
            {
                Assert.Fail("Record not added due to some error");
            }
        }