public void LARSStandardFundingFromEntity() { var entity = new LARS_StandardFunding() { AchievementIncentive = 1.0m, BandNumber = 1, EffectiveFrom = new DateTime(2017, 1, 1), EffectiveTo = new DateTime(2018, 1, 1), CoreGovContributionCap = 2.0m, FundableWithoutEmployer = "2", FundingCategory = "Category", C1618Incentive = 3.0m, SmallBusinessIncentive = 4.0m, StandardCode = 3 }; var larsApprenticeshipFunding = NewService().LARSStandardFundingFromEntity(entity); larsApprenticeshipFunding.AchievementIncentive.Should().Be(entity.AchievementIncentive); larsApprenticeshipFunding.BandNumber.Should().Be(entity.BandNumber); larsApprenticeshipFunding.CoreGovContributionCap.Should().Be(entity.CoreGovContributionCap); larsApprenticeshipFunding.EffectiveFrom.Should().Be(entity.EffectiveFrom); larsApprenticeshipFunding.EffectiveTo.Should().Be(entity.EffectiveTo); larsApprenticeshipFunding.FundableWithoutEmployer.Should().Be(entity.FundableWithoutEmployer); larsApprenticeshipFunding.FundingCategory.Should().Be(entity.FundingCategory); larsApprenticeshipFunding.SixteenToEighteenIncentive.Should().Be(entity.C1618Incentive); larsApprenticeshipFunding.SmallBusinessIncentive.Should().Be(entity.SmallBusinessIncentive); larsApprenticeshipFunding.StandardCode.Should().Be(entity.StandardCode); }
public LARSStandardFunding LARSStandardFundingFromEntity(LARS_StandardFunding entity) { return(new LARSStandardFunding() { StandardCode = entity.StandardCode, FundingCategory = entity.FundingCategory, EffectiveFrom = entity.EffectiveFrom, EffectiveTo = entity.EffectiveTo, AchievementIncentive = entity.AchievementIncentive, BandNumber = entity.BandNumber, CoreGovContributionCap = entity.CoreGovContributionCap, FundableWithoutEmployer = entity.FundableWithoutEmployer, SixteenToEighteenIncentive = entity.C1618Incentive, SmallBusinessIncentive = entity.SmallBusinessIncentive }); }