public void GetAllPaymentsByStudentOnlySubscription() { AddTestSubscription(); PaymentLogic paymentLogic = new PaymentLogic(); Assert.IsTrue(paymentLogic.GetAllPaymentsByStudent(GetLastStudentInDB()).Count == 1); }
public void GetAllPaymentsByStudentOnlyActivityPayment() { AddActivityPayment(); PaymentLogic paymentLogic = new PaymentLogic(); Assert.IsTrue(paymentLogic.GetAllPaymentsByStudent(GetLastStudentInDB()).Count == 1); }
public void GetAllPaymentsByStudentEmpty() { AddTestSubscription(); PaymentLogic paymentLogic = new PaymentLogic(); Student newStudent = new Student(); Assert.IsTrue(paymentLogic.GetAllPaymentsByStudent(newStudent).Count == 0); }
public void LoadConsultPaymentsByStudent(object selected, ListBox listBox) { Student selectedStudent = selected as Student; PaymentLogic logic = new PaymentLogic(); foreach (var item in logic.GetAllPaymentsByStudent(selectedStudent)) { listBox.Items.Add(item); } }