Пример #1
0
 public TransactionAggregate(IEnumerable <IGrouping <InvType, Transaction> > grouping)
     : this()
 {
     foreach (var group in grouping)
     {
         var entry = new TransactionAggregate(group.Key, group);
         processAggregate(entry);
         TradeAggregates.Add(entry);
     }
     processAggregateCollection();
     calculateTotals();
 }
Пример #2
0
 public TransactionAggregate(IEnumerable <IGrouping <DateTime, Transaction> > grouping, InvType invType, Order order)
     : this()
 {
     InvType = invType;
     Order   = order;
     foreach (var group in grouping)
     {
         var entry = new TransactionAggregate(group);
         processAggregate(entry);
         TradeAggregates.Add(entry);
     }
     processAggregateCollection();
     calculateTotals();
 }