public void Verify_AreEqual_WithDifferentObjects_ReturnsFalse()
        {
            // Arrange
            var mapper = new TeamDisbandedInIssueMapper();
            var model  = TeamDisbandedInIssuesMockingSetup.DoMockingSetupForTeamDisbandedInIssueModel(1);
            var entity = TeamDisbandedInIssuesMockingSetup.DoMockingSetupForTeamDisbandedInIssue(2);
            // Act
            var result = mapper.AreEqual(model.Object, entity.Object);

            // Assert
            Assert.False(result);
        }
        public void Verify_MapToModelLite_AssignsLiteOnlyTeamDisbandedInIssueProperties()
        {
            // Arrange
            var mapper = new TeamDisbandedInIssueMapper();
            var entity = TeamDisbandedInIssuesMockingSetup.DoMockingSetupForTeamDisbandedInIssue();
            // Act
            var model = mapper.MapToModelLite(entity.Object);

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

            mockMapper.Setup(x => x.MapToModelListing(It.IsAny <ITeamDisbandedInIssue>(), It.IsAny <int>()));
            var mockEntity = TeamDisbandedInIssuesMockingSetup.DoMockingSetupForTeamDisbandedInIssue(1);

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