public void Verify_Add_Should_AddTheEntityToTheContext()
 {
     // Arrange
     Mock<IDbSet<MovieLocation>> mockSetMovieLocations;
     var mockContext = MovieLocationsMockingSetup.DoMockingSetupForContext(false, out mockSetMovieLocations);
     var repository = new MovieLocationsRepository(mockContext.Object);
     var movieLocations = new MovieLocation { Active = true, CustomKey = "SALVATORE-RAA", };
     // Act
     repository.Add(movieLocations);
     // Assert
     mockSetMovieLocations.Verify(x => x.Add(movieLocations), Times.Once);
 }
        public void Verify_Add_Should_AddTheEntityToTheContext()
        {
            // Arrange
            Mock <IDbSet <MovieLocation> > mockSetMovieLocations;
            var mockContext    = MovieLocationsMockingSetup.DoMockingSetupForContext(false, out mockSetMovieLocations);
            var repository     = new MovieLocationsRepository(mockContext.Object);
            var movieLocations = new MovieLocation {
                Active = true, CustomKey = "SALVATORE-RAA",
            };

            // Act
            repository.Add(movieLocations);
            // Assert
            mockSetMovieLocations.Verify(x => x.Add(movieLocations), Times.Once);
        }