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(); }
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(); }