Example #1
0
        // 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);
            }
        }
Example #2
0
 public void ExecuteTransaction(DepositTransaction transaction)
 {
 }