示例#1
0
 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);
 }
示例#2
0
 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);
 }
示例#3
0
 public void Test_Get()
 {
     var moviesController = new MoviesController();
     var movies = moviesController.Get();
     Assert.IsEmpty(movies);
 }