public void Verify_AreEqual_WithDifferentObjects_ReturnsFalse()
        {
            // Arrange
            var mapper = new IssueAliasMapper();
            var model  = IssueAliasesMockingSetup.DoMockingSetupForIssueAliasModel(1);
            var entity = IssueAliasesMockingSetup.DoMockingSetupForIssueAlias(2);
            // Act
            var result = mapper.AreEqual(model.Object, entity.Object);

            // Assert
            Assert.False(result);
        }
        public void Verify_MapToModelLite_AssignsLiteOnlyIssueAliasProperties()
        {
            // Arrange
            var mapper = new IssueAliasMapper();
            var entity = IssueAliasesMockingSetup.DoMockingSetupForIssueAlias();
            // Act
            var model = mapper.MapToModelLite(entity.Object);

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

            mockMapper.Setup(x => x.MapToModelListing(It.IsAny <IIssueAlias>(), It.IsAny <int>()));
            var mockEntity = IssueAliasesMockingSetup.DoMockingSetupForIssueAlias(1);

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