public void TestPaymentRepository_Retruns_Payment_Schedule_Data_For_TestStudent() { IPaymentRepository paymentRepository = new TestPaymentRepository(); PaymentSchedule paySchedule = paymentRepository.GetPaymentSchedule(1); Assert.IsNotNull(paySchedule); Assert.IsTrue(paySchedule.Payments.Count > 0); Assert.IsNotNull(paySchedule.StudentName); }
public void TestPaymentRepository_Returns_Total_Amount_of_Payment_Schedule_For_TestStudent() { IPaymentRepository paymentRepository = new TestPaymentRepository(); PaymentSchedule paymentSchedule = paymentRepository.GetPaymentSchedule(1); Assert.IsNotNull(paymentSchedule); Assert.IsTrue(paymentSchedule.Payments.Count > 0); Assert.IsNotNull(paymentSchedule.StudentName); double sumAmount = paymentSchedule.PaymentScheduleTotal; Assert.IsNotNull(sumAmount); }