public void Test_Invalid_Genre() { var movieDataAcess = new MovieDataAcessLayerEF(new MovieAppDBContext()); Movie movie = new Movie { MovieName = "Nikhil", ReleaseYear = "2000", Rating = 10 }; Assert.Throws <ArgumentNullException>(() => movieDataAcess.Add(movie)); }
public void Test_Invalid_ReleaseDate() { var movieDataAcess = new MovieDataAcessLayerEF(new MovieAppDBContext()); Movie movie = new Movie { MovieName = "Nikhil", Genre = "Comedy", ReleaseYear = "2022", Rating = 10 }; Assert.Throws <ArgumentOutOfRangeException>(() => movieDataAcess.Add(movie)); }