Exemplo n.º 1
0
        public void GetLoanByActive()
        {
            Boolean active = true;

            LoanSql loanSql = new LoanSql();

            Console.WriteLine(loanSql.GetLoanByActive(active));
        }
Exemplo n.º 2
0
        public void GetLoanByBookId()
        {
            int bookId = 1;

            LoanSql loanSql = new LoanSql();

            Console.WriteLine(loanSql.GetLoanByBookId(bookId));
        }
Exemplo n.º 3
0
        public void GetLoanByDue()
        {
            DateTime loanDue = new DateTime(2001, 1, 2);

            LoanSql loanSql = new LoanSql();

            Console.WriteLine(loanSql.GetLoanByDue(loanDue));
        }
Exemplo n.º 4
0
        public void GetLoansById()
        {
            int loanId = 1;

            LoanSql loanSql = new LoanSql();

            Console.WriteLine(loanSql.GetLoansById(loanId));
        }
Exemplo n.º 5
0
        public void GetLoansByStudent()
        {
            int studentId = 1;

            LoanSql loanSql = new LoanSql();

            Console.WriteLine(loanSql.GetLoansByStudent(studentId));
        }
Exemplo n.º 6
0
        public void FindLoanById()
        {
            int loanId = 1;

            LoanSql loanSql = new LoanSql();

            Console.WriteLine(loanSql.FindLoanById(loanId));
        }
Exemplo n.º 7
0
        public void DeleteLoanTest1()
        {
            int loanId = 1;

            LoanSql loanSql = new LoanSql();

            Console.WriteLine(loanSql.DeleteLoan(loanId));
        }
Exemplo n.º 8
0
        public void GetLoanByAccrued()
        {
            Decimal accrued = 11.11m;

            LoanSql loanSql = new LoanSql();

            Console.WriteLine(loanSql.GetLoanByAccrued(accrued));
        }
Exemplo n.º 9
0
        public void InsertLoanTest1()
        {
            int      studentId = 1;
            int      bookId    = 1;
            DateTime loanDate  = new DateTime(2001, 1, 1);
            DateTime loanDue   = new DateTime(2001, 1, 2);
            Boolean  active    = true;
            Decimal  accrued   = 11.11m;

            LoanSql loanSql = new LoanSql();

            Console.WriteLine(loanSql.InsertLoan(studentId, bookId, loanDate, loanDue, active, accrued));
        }
Exemplo n.º 10
0
        public void UpdateLoan()
        {
            int      loanId    = 1;
            int      studentId = 1;
            int      bookId    = 1;
            DateTime loanDate  = new DateTime(2002, 2, 2);
            DateTime loanDue   = new DateTime(2002, 2, 3);
            Boolean  active    = true;
            Decimal  accrued   = 22.22m;

            LoanSql loanSql = new LoanSql();

            Console.WriteLine(loanSql.UpdateLoan(loanId, studentId, bookId, loanDate, loanDue, active, accrued));
        }