public Budget( DateTime validFrom, DateTime validTo, IEnumerable<Transfer> operations = null, IEnumerable<Account> relatedAccounts = null, Account clearingAccount = null) { ValidFrom = validFrom; ValidTo = validTo; Operations = operations ?? Enumerable.Empty<Transfer>(); RelatedAccounts = relatedAccounts ?? Enumerable.Empty<Account>(); }
public Transfer(decimal amount, Account sourceAccount, Account destinationAccount, Budget budget, DateTime? plannedDate, DateTime? transferDate, string reference = null) { Amount = amount; DestinationAccount = destinationAccount; SourceAccount = sourceAccount; Budget = budget; PlannedDate = plannedDate; TransferDate = transferDate; Reference = reference; }