示例#1
0
文件: Budget.cs 项目: bofort/Lab06
 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>();
 }
示例#2
0
文件: Transfer.cs 项目: Ziachu/Lab04
 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;
 }