public void Verify_AreEqual_WithDifferentObjects_ReturnsFalse()
        {
            // Arrange
            var mapper = new EpisodeCharacterDiedMapper();
            var model  = EpisodeCharactersDiedMockingSetup.DoMockingSetupForEpisodeCharacterDiedModel(1);
            var entity = EpisodeCharactersDiedMockingSetup.DoMockingSetupForEpisodeCharacterDied(2);
            // Act
            var result = mapper.AreEqual(model.Object, entity.Object);

            // Assert
            Assert.False(result);
        }
        public void Verify_MapToModelLite_AssignsLiteOnlyEpisodeCharacterDiedProperties()
        {
            // Arrange
            var mapper = new EpisodeCharacterDiedMapper();
            var entity = EpisodeCharactersDiedMockingSetup.DoMockingSetupForEpisodeCharacterDied();
            // Act
            var model = mapper.MapToModelLite(entity.Object);

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

            mockMapper.Setup(x => x.MapToModelListing(It.IsAny <IEpisodeCharacterDied>(), It.IsAny <int>()));
            var mockEntity = EpisodeCharactersDiedMockingSetup.DoMockingSetupForEpisodeCharacterDied(1);

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