public void Verify_MapToSearchModelExtension_CallsMapToModel()
        {
            // Arrange
            var mockMapper = new Mock <MovieMapper>();

            mockMapper.Setup(x => x.MapToSearchModel(It.IsAny <IMovieModel>()));
            var mockModel = MoviesMockingSetup.DoMockingSetupForMovieModel(1);

            MovieMapperExtensions.OverrideMapper(mockMapper.Object);
            // Act
            mockModel.Object.MapToSearchModel();
            // Assert
            mockMapper.Verify(x => x.MapToSearchModel(It.IsAny <IMovieModel>()), Times.Once);
        }
        public void Verify_MapToModelListingExtension_CallsMapToModel()
        {
            // Arrange
            var mockMapper = new Mock <MovieMapper>();

            mockMapper.Setup(x => x.MapToModelListing(It.IsAny <IMovie>(), It.IsAny <int>()));
            var mockEntity = MoviesMockingSetup.DoMockingSetupForMovie(1);

            MovieMapperExtensions.OverrideMapper(mockMapper.Object);
            // Act
            mockEntity.Object.MapToModelListing();
            // Assert
            mockMapper.Verify(x => x.MapToModelListing(It.IsAny <IMovie>(), It.IsAny <int>()), Times.Once);
        }
        public void Verify_AreEqualExtension_CallsAreEqual()
        {
            // Arrange
            var mockMapper = new Mock <MovieMapper>();

            mockMapper.Setup(x => x.AreEqual(It.IsAny <IMovieModel>(), It.IsAny <IMovie>()));
            MovieMapperExtensions.OverrideMapper(mockMapper.Object);
            var mockModel  = MoviesMockingSetup.DoMockingSetupForMovieModel(1);
            var mockEntity = MoviesMockingSetup.DoMockingSetupForMovie(1);

            // Act
            mockModel.Object.AreEqual(mockEntity.Object);
            // Assert
            mockMapper.Verify(x => x.AreEqual(It.IsAny <IMovieModel>(), It.IsAny <IMovie>()), Times.Once);
        }