public void Verify_AreEqual_WithDifferentObjects_ReturnsFalse()
        {
            // Arrange
            var mapper = new ConceptAliasMapper();
            var model  = ConceptAliasesMockingSetup.DoMockingSetupForConceptAliasModel(1);
            var entity = ConceptAliasesMockingSetup.DoMockingSetupForConceptAlias(2);
            // Act
            var result = mapper.AreEqual(model.Object, entity.Object);

            // Assert
            Assert.False(result);
        }
        public void Verify_MapToModelLite_AssignsLiteOnlyConceptAliasProperties()
        {
            // Arrange
            var mapper = new ConceptAliasMapper();
            var entity = ConceptAliasesMockingSetup.DoMockingSetupForConceptAlias();
            // Act
            var model = mapper.MapToModelLite(entity.Object);

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

            mockMapper.Setup(x => x.MapToModelListing(It.IsAny <IConceptAlias>(), It.IsAny <int>()));
            var mockEntity = ConceptAliasesMockingSetup.DoMockingSetupForConceptAlias(1);

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