Пример #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 Post(CreateMovie input)
 {
     Storage.Collection.AddMovie(input.Name);
 }