public void Verify_AreEqual_WithDifferentObjects_ReturnsFalse()
        {
            // Arrange
            var mapper = new StoryArcAliasMapper();
            var model  = StoryArcAliasesMockingSetup.DoMockingSetupForStoryArcAliasModel(1);
            var entity = StoryArcAliasesMockingSetup.DoMockingSetupForStoryArcAlias(2);
            // Act
            var result = mapper.AreEqual(model.Object, entity.Object);

            // Assert
            Assert.False(result);
        }
        public void Verify_MapToModelLite_AssignsLiteOnlyStoryArcAliasProperties()
        {
            // Arrange
            var mapper = new StoryArcAliasMapper();
            var entity = StoryArcAliasesMockingSetup.DoMockingSetupForStoryArcAlias();
            // Act
            var model = mapper.MapToModelLite(entity.Object);

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

            mockMapper.Setup(x => x.MapToModelListing(It.IsAny <IStoryArcAlias>(), It.IsAny <int>()));
            var mockEntity = StoryArcAliasesMockingSetup.DoMockingSetupForStoryArcAlias(1);

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