Esempio n. 1
0
        public EntryAccount(EntryTypeAccount entryTypeAccount, DateTime date, decimal amount)
        {
            if (amount <= 0)
            {
                throw new ApplicationException("Valor deve ser maior que zero!");
            }

            EntryTypeAccount = entryTypeAccount;
            Amount           = amount;
            Date             = date;
        }
Esempio n. 2
0
 public void AddEntryAccount(EntryTypeAccount type, decimal amount, DateTime date)
 {
     EntryAccounts.Add(new EntryAccount(type, date, amount));
 }