Пример #1
0
        public void CreditCardAuthorizeSuccessfulTest()
        {
            var client = new NaturalPerson("Jan Kowalski", "11312737254");
            var card   = new CreditCard("1234567890", client, true, 1250.12m);

            Assert.AreEqual(card.Authorize(1500), BankActionResult.SUCCESS);
        }
Пример #2
0
        public void CreditCardAuthorizeRejectedTest()
        {
            var client = new NaturalPerson("Jan Kowalski", "11312737254");
            var card   = new CreditCard("1234567890", client, true, 1250.12m);

            Assert.AreEqual(card.Authorize(-3500), BankActionResult.REJECTED_INSUFFICIENT_ACCOUNT_BALANCE);
        }