public void Test_Post() { var moviesController = new MoviesController(); var createMovie = new CreateMovie(); createMovie.Name = "Test 1"; moviesController.Post(createMovie); var movies = moviesController.Get(); Assert.AreEqual("Test 1", movies.First().Name); }
public void Test_Delete_All() { var moviesController = new MoviesController(); var createMovie = new CreateMovie(); createMovie.Name = "Test 1"; moviesController.Post(createMovie); moviesController.Delete(); var movies = moviesController.Get(); Assert.IsEmpty(movies); }
public void Test_Get() { var moviesController = new MoviesController(); var movies = moviesController.Get(); Assert.IsEmpty(movies); }