public LARSLearningDeliveryCategory LARSLearningDeliveryCategoryFromEntity(LARS_LearningDeliveryCategory entity) { return(new LARSLearningDeliveryCategory() { LearnAimRef = entity.LearnAimRef, CategoryRef = entity.CategoryRef, EffectiveFrom = entity.EffectiveFrom, EffectiveTo = entity.EffectiveTo, }); }
public void LARSLearningDeliveryCategoryFromEntity() { var entity = new LARS_LearningDeliveryCategory() { CategoryRef = 1, EffectiveFrom = new DateTime(2017, 1, 1), EffectiveTo = new DateTime(2018, 1, 1), LearnAimRef = "learnAimRef", }; var larsLearningDeliveryCategory = NewService().LARSLearningDeliveryCategoryFromEntity(entity); larsLearningDeliveryCategory.CategoryRef.Should().Be(entity.CategoryRef); larsLearningDeliveryCategory.EffectiveFrom.Should().Be(entity.EffectiveFrom); larsLearningDeliveryCategory.EffectiveTo.Should().Be(entity.EffectiveTo); larsLearningDeliveryCategory.LearnAimRef.Should().Be(entity.LearnAimRef); }