Example #1
0
 public Posting(string type, Account debt, Account cred, DateTime date, Money summ, string comment)
 {
     _type = type;
     _debt = debt;
     _cred = cred;
     _date = date;
     _summ = summ;
     _comment = comment;
 }
        public Account GetAccount(string name)
        {
            if (_cacheAccounts.ContainsKey(name))
                return _cacheAccounts[name];

            Account acc = new Account(name, "bik", "metib", "corr");

            _cacheAccounts.Add(name, acc);

            return acc;

            //throw new NotImplementedException("Can't get Shipment's Accounts");
        }