Exemple #1
0
 public OrderAggregator()
 {
     OrderArray                    = OrderList.ToArray();
     OrderDictionary               = OrderList.ToDictionary(order => order.OrderId, order => order);
     maxPriceCalculator            = new MaxPriceCalculator();
     mostExpensiveGenderCalculator = new MostExpensiveGenderCalculator();
     maxTotalCalculator            = new MaxTotalCalculator();
 }
 public void SetUp()
 {
     sut = new MaxTotalCalculator();
 }