public void Arrange() { _incentivePaymentProfiles = new List <IncentivePaymentProfile> { new IncentivePaymentProfile { IncentiveType = IncentiveType.TwentyFiveOrOverIncentive, PaymentProfiles = new List <PaymentProfile> { new PaymentProfile { AmountPayable = 1000, DaysAfterApprenticeshipStart = 90 } } }, new IncentivePaymentProfile { IncentiveType = IncentiveType.UnderTwentyFiveIncentive, PaymentProfiles = new List <PaymentProfile> { new PaymentProfile { AmountPayable = 1500, DaysAfterApprenticeshipStart = 90 } } }, }; _mockApplicationSettings = new Mock <IOptions <ApplicationSettings> >(); _mockApplicationSettings.Setup(x => x.Value).Returns(new ApplicationSettings { IncentivePaymentProfiles = _incentivePaymentProfiles }); _sut = new IncentivePaymentProfilesService(_mockApplicationSettings.Object); }
public void Arrange() { _incentivePaymentProfiles = new IncentivePaymentProfileListBuilder().Build(); _mockApplicationSettings = new Mock <IOptions <ApplicationSettings> >(); _mockApplicationSettings.Setup(x => x.Value).Returns(new ApplicationSettings { IncentivePaymentProfiles = _incentivePaymentProfiles }); _sut = new IncentivePaymentProfilesService(_mockApplicationSettings.Object); }