// Do Deposit public static void doDeposit(Bank bank) { Account account = FindAccount(bank); if (account != null) { Console.WriteLine("Enter amount to deposit"); decimal withAmount = Convert.ToDecimal(Console.ReadLine()); DepositTransaction deposit = new DepositTransaction(account, withAmount); deposit.Execute(); bank.ExecuteTransaction(deposit); } }
public void ExecuteTransaction(DepositTransaction transaction) { }