public void CalculateMonthlyPayments_Should_Return_Different_Values_For_Initial_And_Other_Payments_If_Invalid_Average_Value() { CustomerModel model = new CustomerModel(0, 0); var result = model.CalculateMonthlyPayments(152.25m, 12.6875m); Assert.AreEqual(result.initialPayment, 12.77m); Assert.AreEqual(result.otherPayment, 12.68m); }
public void CalculateMonthlyPayments_Should_Return_Same_Values_For_Initial_And_Other_Payments_If_Valid_Average_Value() { CustomerModel model = new CustomerModel(0, 0); var result = model.CalculateMonthlyPayments(126, 10.5m); Assert.AreEqual(result.initialPayment, 10.5m); Assert.AreEqual(result.otherPayment, 10.5m); }