public void Verify_AreEqual_WithDifferentObjects_ReturnsFalse()
        {
            // Arrange
            var mapper = new CharacterStoryArcMapper();
            var model  = CharacterStoryArcsMockingSetup.DoMockingSetupForCharacterStoryArcModel(1);
            var entity = CharacterStoryArcsMockingSetup.DoMockingSetupForCharacterStoryArc(2);
            // Act
            var result = mapper.AreEqual(model.Object, entity.Object);

            // Assert
            Assert.False(result);
        }
        public void Verify_MapToModelLite_AssignsLiteOnlyCharacterStoryArcProperties()
        {
            // Arrange
            var mapper = new CharacterStoryArcMapper();
            var entity = CharacterStoryArcsMockingSetup.DoMockingSetupForCharacterStoryArc();
            // Act
            var model = mapper.MapToModelLite(entity.Object);

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

            mockMapper.Setup(x => x.MapToModelListing(It.IsAny <ICharacterStoryArc>(), It.IsAny <int>()));
            var mockEntity = CharacterStoryArcsMockingSetup.DoMockingSetupForCharacterStoryArc(1);

            CharacterStoryArcMapperExtensions.OverrideMapper(mockMapper.Object);
            // Act
            mockEntity.Object.MapToModelListing();
            // Assert
            mockMapper.Verify(x => x.MapToModelListing(It.IsAny <ICharacterStoryArc>(), It.IsAny <int>()), Times.Once);
        }