public void Verify_AreEqual_WithDifferentObjects_ReturnsFalse()
        {
            // Arrange
            var mapper = new CharacterAliasMapper();
            var model  = CharacterAliasesMockingSetup.DoMockingSetupForCharacterAliasModel(1);
            var entity = CharacterAliasesMockingSetup.DoMockingSetupForCharacterAlias(2);
            // Act
            var result = mapper.AreEqual(model.Object, entity.Object);

            // Assert
            Assert.False(result);
        }
        public void Verify_MapToModelLite_AssignsLiteOnlyCharacterAliasProperties()
        {
            // Arrange
            var mapper = new CharacterAliasMapper();
            var entity = CharacterAliasesMockingSetup.DoMockingSetupForCharacterAlias();
            // Act
            var model = mapper.MapToModelLite(entity.Object);

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

            mockMapper.Setup(x => x.MapToModelListing(It.IsAny <ICharacterAlias>(), It.IsAny <int>()));
            var mockEntity = CharacterAliasesMockingSetup.DoMockingSetupForCharacterAlias(1);

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