Exemple #1
0
        public void WithDrawMoney(Money amount)
        {
            decimal pendingBalance = ((decimal)GetBalance()) - amount;

            accountType.ValidateBalance(pendingBalance);
            transactions.Add(new Transaction(TransactionTypeEnum.Withdrawal, amount));
        }