public void Withdraw(Amount amount) { if (_transactions.GetCurrentBalance() < amount) { throw new InsuficientFundsException($"The account {Id} does not have enough funds to withdraw {amount}."); } Debit debit = new Debit(Id, amount); _transactions.Add(debit); }