Ejemplo n.º 1
0
 public PurchaseOptimizer()
 {
     _allocators = GetAllocators().OrderBy(x => x.Priority).ToList();
     foreach (var allocator in _allocators)
     {
         allocator.Progress += Allocator_Progress;
     }
     _progress     = new ProgressBar(false);
     _orderPrinter = new OrderPrinter();
 }
Ejemplo n.º 2
0
 public OrderPrintingService(IOrderService orderService, IOrderPrinter orderPrinter)
 {
     _orderService = orderService;
     _orderPrinter = orderPrinter;
 }