예제 #1
0
        public void GetAllPaymentsByStudentOnlySubscription()
        {
            AddTestSubscription();
            PaymentLogic paymentLogic = new PaymentLogic();

            Assert.IsTrue(paymentLogic.GetAllPaymentsByStudent(GetLastStudentInDB()).Count == 1);
        }
예제 #2
0
        public void GetAllPaymentsByStudentOnlyActivityPayment()
        {
            AddActivityPayment();
            PaymentLogic paymentLogic = new PaymentLogic();

            Assert.IsTrue(paymentLogic.GetAllPaymentsByStudent(GetLastStudentInDB()).Count == 1);
        }
예제 #3
0
        public void GetAllPaymentsByStudentEmpty()
        {
            AddTestSubscription();
            PaymentLogic paymentLogic = new PaymentLogic();
            Student      newStudent   = new Student();

            Assert.IsTrue(paymentLogic.GetAllPaymentsByStudent(newStudent).Count == 0);
        }
예제 #4
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);
            }
        }