public void Verify_AreEqual_WithDifferentObjects_ReturnsFalse()
        {
            // Arrange
            var mapper = new MovieConceptMapper();
            var model  = MovieConceptsMockingSetup.DoMockingSetupForMovieConceptModel(1);
            var entity = MovieConceptsMockingSetup.DoMockingSetupForMovieConcept(2);
            // Act
            var result = mapper.AreEqual(model.Object, entity.Object);

            // Assert
            Assert.False(result);
        }
        public void Verify_MapToModelLite_AssignsLiteOnlyMovieConceptProperties()
        {
            // Arrange
            var mapper = new MovieConceptMapper();
            var entity = MovieConceptsMockingSetup.DoMockingSetupForMovieConcept();
            // Act
            var model = mapper.MapToModelLite(entity.Object);

            // Assert
            // <None>
            // Related Objects
            Assert.Equal(entity.Object.MovieId, model.MovieId);
            Assert.Equal(entity.Object.ConceptId, model.ConceptId);
        }
        public void Verify_MapToModelListingExtension_CallsMapToModel()
        {
            // Arrange
            var mockMapper = new Mock <MovieConceptMapper>();

            mockMapper.Setup(x => x.MapToModelListing(It.IsAny <IMovieConcept>(), It.IsAny <int>()));
            var mockEntity = MovieConceptsMockingSetup.DoMockingSetupForMovieConcept(1);

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

            mockMapper.Setup(x => x.AreEqual(It.IsAny <IMovieConceptModel>(), It.IsAny <IMovieConcept>()));
            MovieConceptMapperExtensions.OverrideMapper(mockMapper.Object);
            var mockModel  = MovieConceptsMockingSetup.DoMockingSetupForMovieConceptModel(1);
            var mockEntity = MovieConceptsMockingSetup.DoMockingSetupForMovieConcept(1);

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