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); }
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); }