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_MapToEntityExtension_CallsMapToEntity()
        {
            // Arrange
            var mockMapper = new Mock <TeamDisbandedInIssueMapper>();

            mockMapper.Setup(x => x.MapToEntity(It.IsAny <ITeamDisbandedInIssueModel>(), It.IsAny <int>()));
            var mockModel = TeamDisbandedInIssuesMockingSetup.DoMockingSetupForTeamDisbandedInIssueModel(1);

            TeamDisbandedInIssueMapperExtensions.OverrideMapper(mockMapper.Object);
            // Act
            mockModel.Object.MapToEntity();
            // Assert
            mockMapper.Verify(x => x.MapToEntity(It.IsAny <ITeamDisbandedInIssueModel>(), It.IsAny <int>()), Times.Once);
        }
        public void Verify_MapToEntity_AssignsTeamDisbandedInIssueProperties()
        {
            // Arrange
            var mapper = new TeamDisbandedInIssueMapper();
            var model  = TeamDisbandedInIssuesMockingSetup.DoMockingSetupForTeamDisbandedInIssueModel();
            // Act
            var entity = mapper.MapToEntity(model.Object);

            // Assert
            // <None>
            // Related Objects
            Assert.Equal(model.Object.TeamId, entity.TeamId);
            Assert.Equal(model.Object.IssueId, entity.IssueId);
            // Associated Objects
            // <None>
        }
        public void Verify_MapToSearchModel_AssignsTeamDisbandedInIssueSearchProperties()
        {
            // Arrange
            var mapper = new TeamDisbandedInIssueMapper();
            var model  = TeamDisbandedInIssuesMockingSetup.DoMockingSetupForTeamDisbandedInIssueModel();
            // Act
            var searchModel = mapper.MapToSearchModel(model.Object);

            // Assert
            Assert.Equal(model.Object.TeamId, searchModel.TeamId);
            Assert.Equal(model.Object.Team?.CustomKey, searchModel.TeamCustomKey);
            Assert.Equal(model.Object.Team?.ApiDetailUrl, searchModel.TeamApiDetailUrl);
            Assert.Equal(model.Object.Team?.SiteDetailUrl, searchModel.TeamSiteDetailUrl);
            Assert.Equal(model.Object.Team?.Name, searchModel.TeamName);
            Assert.Equal(model.Object.Team?.ShortDescription, searchModel.TeamShortDescription);
            Assert.Equal(model.Object.Team?.Description, searchModel.TeamDescription);
            Assert.Equal(model.Object.IssueId, searchModel.IssueId);
            Assert.Equal(model.Object.Issue?.CustomKey, searchModel.IssueCustomKey);
            Assert.Equal(model.Object.Issue?.ApiDetailUrl, searchModel.IssueApiDetailUrl);
            Assert.Equal(model.Object.Issue?.SiteDetailUrl, searchModel.IssueSiteDetailUrl);
            Assert.Equal(model.Object.Issue?.Name, searchModel.IssueName);
            Assert.Equal(model.Object.Issue?.ShortDescription, searchModel.IssueShortDescription);
            Assert.Equal(model.Object.Issue?.Description, searchModel.IssueDescription);
        }