public void Verify_AreEqual_WithDifferentObjects_ReturnsFalse()
        {
            // Arrange
            var mapper = new PublisherAliasMapper();
            var model  = PublisherAliasesMockingSetup.DoMockingSetupForPublisherAliasModel(1);
            var entity = PublisherAliasesMockingSetup.DoMockingSetupForPublisherAlias(2);
            // Act
            var result = mapper.AreEqual(model.Object, entity.Object);

            // Assert
            Assert.False(result);
        }
        public void Verify_MapToModelLite_AssignsLiteOnlyPublisherAliasProperties()
        {
            // Arrange
            var mapper = new PublisherAliasMapper();
            var entity = PublisherAliasesMockingSetup.DoMockingSetupForPublisherAlias();
            // Act
            var model = mapper.MapToModelLite(entity.Object);

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

            mockMapper.Setup(x => x.MapToModelListing(It.IsAny <IPublisherAlias>(), It.IsAny <int>()));
            var mockEntity = PublisherAliasesMockingSetup.DoMockingSetupForPublisherAlias(1);

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