Exemplo n.º 1
0
        // Do Withdraw
        public static void doWithdraw(Bank bank)
        {
            Account account = FindAccount(bank);

            if (account != null)
            {
                Console.WriteLine("Enter amount to withdraw");
                decimal withAmount = Convert.ToDecimal(Console.ReadLine());

                WithdrawTransaction withdraw = new WithdrawTransaction(account, withAmount);
                withdraw.Execute();
                bank.ExecuteTransaction(withdraw);
            }
        }
Exemplo n.º 2
0
 public void ExecuteTransaction(WithdrawTransaction transaction)
 {
 }