// TODO: get balance internal Account(String name, AccountType type, Amount openingBalance, SetOfAccounts setOfAccounts) { if (name == null) { throw new ArgumentNullException("name"); } if (openingBalance == null) { throw new ArgumentNullException("openingBalance"); } if (setOfAccounts == null) { throw new ArgumentNullException("setOfAccounts"); } m_name = name; m_type = type; m_openingBalance = openingBalance; m_setOfAccounts = setOfAccounts; }
internal Ledger(SetOfAccounts setOfAccounts) { m_setOfAccounts = setOfAccounts; m_transactions = new List <Transaction>(); }