public void ATMCardAuthorizeSuccessfulTest() { var client = new NaturalPerson("Jan Kowalski", "11312737254"); var card = new ATMCard("1234567890", client, true, 1250.12m); Assert.AreEqual(card.Authorize(1500m), BankActionResult.SUCCESS); }
public void ATMCardAuthorizeRejectedTest() { var client = new NaturalPerson("Jan Kowalski", "11312737254"); var card = new ATMCard("1234567890", client, true, 1250.12m); Assert.AreEqual(card.Authorize(-1500m), BankActionResult.REJECTED_INSUFFICIENT_ACCOUNT_BALANCE); }