public SimulationBill(DateTime start, Bill bill) { Due = new SimulationDueInfo(start, bill.Due); Id = bill.Id; Name = bill.Name; AccountId = bill.AccountId; Payment = bill.Payment; }
public SimulationTransaction(DateTime start, Transaction transaction) { Due = new SimulationDueInfo(start, transaction.Due); Id = transaction.Id; Name = transaction.Name; Amount = transaction.Amount; FromId = transaction.FromId; ToId = transaction.ToId; }
public SimulationPaycheck(DateTime start, Paycheck paycheck) { _dueDates = new SimulationDueInfo(start, paycheck.Due); _deposits = paycheck.Deposits.Select(d => new SimulationPaycheckDeposit(d)).ToList(); Id = paycheck.Id; AccountId = paycheck.AccountId; Name = paycheck.Name; Total = paycheck.Total; }
public SimulationDebtAccount(DateTime start, Debt debt) : base(debt) { Interest = debt.Interest; Due = new SimulationDueInfo(start, debt.Due); Type = debt.Type; AccountId = debt.AccountId; Payment = debt.Payment; State = SimulationDebtAccountState.Due; }