示例#1
0
 public void Init()
 {
     source = new AccountClass();
     source.Deposit(200m);
     destination = new AccountClass();
     destination.Deposit(150m);
 }
示例#2
0
        public void TransferFunds(AccountClass destination, decimal amount)
        {
            

            if (balance - amount < minimumBalance)
                throw new InsufficientFundsException();

            destination.Deposit(amount);

            Withdraw(amount);
        }
示例#3
0
        public void TransferFunds(AccountClass destination, decimal amount)
        {
            if (balance - amount < minimumBalance)
            {
                throw new InsufficientFundsException();
            }

            destination.Deposit(amount);

            Withdraw(amount);
        }