public void Verify_AreEqual_WithDifferentObjects_ReturnsFalse()
        {
            // Arrange
            var mapper = new ConceptVolumeMapper();
            var model  = ConceptVolumesMockingSetup.DoMockingSetupForConceptVolumeModel(1);
            var entity = ConceptVolumesMockingSetup.DoMockingSetupForConceptVolume(2);
            // Act
            var result = mapper.AreEqual(model.Object, entity.Object);

            // Assert
            Assert.False(result);
        }
        public void Verify_MapToModelLite_AssignsLiteOnlyConceptVolumeProperties()
        {
            // Arrange
            var mapper = new ConceptVolumeMapper();
            var entity = ConceptVolumesMockingSetup.DoMockingSetupForConceptVolume();
            // Act
            var model = mapper.MapToModelLite(entity.Object);

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

            mockMapper.Setup(x => x.MapToModelListing(It.IsAny <IConceptVolume>(), It.IsAny <int>()));
            var mockEntity = ConceptVolumesMockingSetup.DoMockingSetupForConceptVolume(1);

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

            mockMapper.Setup(x => x.AreEqual(It.IsAny <IConceptVolumeModel>(), It.IsAny <IConceptVolume>()));
            ConceptVolumeMapperExtensions.OverrideMapper(mockMapper.Object);
            var mockModel  = ConceptVolumesMockingSetup.DoMockingSetupForConceptVolumeModel(1);
            var mockEntity = ConceptVolumesMockingSetup.DoMockingSetupForConceptVolume(1);

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