public void Verify_Get_ByKey_Should_ReturnTheCorrectMovieLocation()
        {
            // Arrange
            Mock <IDbSet <MovieLocation> > mockSetMovieLocations;
            var mockContext = MovieLocationsMockingSetup.DoMockingSetupForContext(true, out mockSetMovieLocations);
            var repository  = new MovieLocationsRepository(mockContext.Object);
            // Act
            var movieLocations = repository.Get("KING-STEPHEN");

            // Assert
            Assert.Equal("/TEST/KING-STEPHEN", movieLocations.ApiDetailUrl);
        }
        public void Verify_Update_Should_SetTheEntityStateToModified()
        {
            // Arrange
            Mock <IDbSet <MovieLocation> > mockSetMovieLocations;
            var mockContext    = MovieLocationsMockingSetup.DoMockingSetupForContext(true, out mockSetMovieLocations);
            var repository     = new MovieLocationsRepository(mockContext.Object);
            var movieLocations = repository.Get(1);

            movieLocations.ApiDetailUrl = "/TEST";
            // Act
            repository.Update(movieLocations);
            // Assert
            mockContext.Verify(x => x.SetModified(It.IsAny <object>()), Times.Once);
        }