Пример #1
0
        public void Init()
        {
            _source = new Account();
            _source.Deposit(200m);

            _destination = new Account();
            _destination.Deposit(150m);
        }
Пример #2
0
        public void TransferFunds(Account destination, decimal amount)
        {
            if (Balance - amount < minimumBalance)
                throw new InsufficientFundsException();

            destination.Deposit(amount);

            Withdraw(amount);
        }