public void GetPaymentExceptionTest()
        {
            var controller = new LoanController();
            var loanID     = controller.GetLoanTypes()[0].LoanTypeID;

            Assert.ThrowsException <HttpResponseException>(
                () => controller.ReturnPayments(1000, UInt16.MaxValue, loanID));
        }
        public void GetLoanTypesTest()
        {
            var controller = new LoanController();

            var availableLoans = controller.GetLoanTypes();

            Assert.IsTrue(availableLoans.Count > 0);
        }
        public void GetPaymentsTest()
        {
            var controller     = new LoanController();
            var availableLoans = controller.GetLoanTypes();

            var payments = controller.ReturnPayments(1000M, 5, availableLoans[0].LoanTypeID);

            Assert.IsTrue(payments.Count > 0);
        }