public void Verify_AreEqual_WithDifferentObjects_ReturnsFalse()
        {
            // Arrange
            var mapper = new ConceptAppearedInIssueMapper();
            var model  = ConceptAppearedInIssuesMockingSetup.DoMockingSetupForConceptAppearedInIssueModel(1);
            var entity = ConceptAppearedInIssuesMockingSetup.DoMockingSetupForConceptAppearedInIssue(2);
            // Act
            var result = mapper.AreEqual(model.Object, entity.Object);

            // Assert
            Assert.False(result);
        }
        public void Verify_MapToModelLite_AssignsLiteOnlyConceptAppearedInIssueProperties()
        {
            // Arrange
            var mapper = new ConceptAppearedInIssueMapper();
            var entity = ConceptAppearedInIssuesMockingSetup.DoMockingSetupForConceptAppearedInIssue();
            // Act
            var model = mapper.MapToModelLite(entity.Object);

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

            mockMapper.Setup(x => x.MapToModelListing(It.IsAny <IConceptAppearedInIssue>(), It.IsAny <int>()));
            var mockEntity = ConceptAppearedInIssuesMockingSetup.DoMockingSetupForConceptAppearedInIssue(1);

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