Example #1
0
 public Order(IFactory factory, IEnumerable<ShippingMethod> shippingMethods)
 {
     _shippingMethods = shippingMethods;
     _lines = new List<OrderLine>();
     _discounts = new List<IDiscount>();
     _factory = factory;
     _tax = _factory.CreateTax();
 }
Example #2
0
 public OrderLine(IFactory factory)
 {
     _factory = factory;
     _tax = _factory.CreateTax();
     _modifiers = new List<Modifier>();
 }