public void UpdateMovies_NormalFlow()
        {
            var movie = new Movie()
            {
                MovieId = 85,
                Title = "TestTitle " + Guid.NewGuid().ToString(),
                ReleaseDate = DateTime.Parse("2016-05-27"),
                Description = "TestDescriptionUpdateTEST",
                Genre = new Genre { GenreId = 1, Name = "Action" },
                Director = new Director { DirectorId = 1, FirstName = "Tim", LastName = "Miller" },
                Language = new Language { LanguageId = 1, Name = "English" }
            };
            _moviesRepository2.Update(movie);
            var newRecord = _moviesRepository2.Get(movie.MovieId);

            movie.ShouldBeEquivalentTo(newRecord);
        }
        public void DeleteMovieByID_DeleteById()
        {
            var movie = new Movie()
            {
                Title = "TestTitle " + Guid.NewGuid().ToString(),
                ReleaseDate = DateTime.Now,
                Description = "Test Description",
                Genre = new Genre() {GenreId = 1},
                Director = new Director() { DirectorId = 1 },
                Language = new Language() { LanguageId = 1 }
            };

            var idOfInsertedMovie = _moviesRepository2.Insert(movie);
            _moviesRepository2.Delete(idOfInsertedMovie);
            var retrievedRecord = _moviesRepository2.Get(idOfInsertedMovie);

            Assert.AreEqual(null, retrievedRecord);
        }
 public void Update(Movie movie)
 {
     _moviesRepository2.Update(movie);
 }
 public void Insert(Movie movie)
 {
     _moviesRepository2.Insert(movie);
 }