Exemplo n.º 1
0
        public void TestLoanManagerFailedPhone()
        {
            var loanManager = new LoanManager();

            Assert.IsFalse(loanManager.CreateLoan(new LoanData("380999999999", 100, 15)).IsSuccess);
        }
Exemplo n.º 2
0
        public void TestLoanManagerSuccess()
        {
            var loanManager = new LoanManager();

            Assert.IsTrue(loanManager.CreateLoan(new LoanData("+380999999999", 100, 10)).IsSuccess);
        }
Exemplo n.º 3
0
        public void TestLoanManagerFailedAmount()
        {
            var loanManager = new LoanManager();

            Assert.IsFalse(loanManager.CreateLoan(new LoanData("+380999999999", 500, 10)).IsSuccess);
        }