private void ExceedAvailableBalance() { try { var customerAccount = new CurrentAccount(1); customerAccount.Withdraw(180); Console.WriteLine("Request accepted. Take cash and card."); } catch (InsufficientFundsException ifex) { Console.WriteLine(ifex.Message); } }
private void ExceedAtmDailyLimit() { try { var customerAccount = new CurrentAccount(1); customerAccount.Withdraw(300); Console.WriteLine("Request accepted. Take cash and card."); } catch (ExceededAtmDailyLimitException eadlex) { Console.WriteLine(eadlex.Message); } }