Exemplo n.º 1
0
        public void GetAllPaymentsByStudentOnlySubscription()
        {
            AddTestSubscription();
            PaymentLogic paymentLogic = new PaymentLogic();

            Assert.IsTrue(paymentLogic.GetAllPaymentsByStudent(GetLastStudentInDB()).Count == 1);
        }
Exemplo n.º 2
0
        public void GetAllPaymentsByStudentOnlyActivityPayment()
        {
            AddActivityPayment();
            PaymentLogic paymentLogic = new PaymentLogic();

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

            Assert.IsTrue(paymentLogic.GetAllPaymentsByStudent(newStudent).Count == 0);
        }
Exemplo n.º 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);
            }
        }