public void TestMatchCriteriaFalseWhenAgeOver() { IAgeMonthsCalculator ageCalculator = new AgeProcessingService(); ICreditApplication creditApplication = CardApplicationTestExtensionMethods.SetupWithDefaultValues().PrepareCardApplicationWithDob(DateTime.Now.Date.AddYears(-50)).PrepareCardApplicationWithAnnualIncome(5); CreditProduct sut = new CreditProduct() { MinAgeMonths = 12, MaxAgeMonths = 100, MinIncomeGbp = 1, MaxIncomeGbp = 30 }; Assert.IsFalse(sut.MeetsCriteria(creditApplication, ageCalculator)); }
/// <summary> /// OrderCreditParameters constructor. /// </summary> /// <param name="product">Object containing all the necessary product information needed for a credit service provider to process a service request.</param> public OrderCreditParameters(CreditProduct product) : base(product) { }