public PurchaseOrder(
            Customer customer, IEnumerable <Product> lineItems, ICustomerRepository customerRepository,
            IShippingSlipGenerator shippingSlipGenerator, IMapper mapper)
        {
            Customer  = customer;
            LineItems = lineItems;

            _customerRepository    = customerRepository;
            _shippingSlipGenerator = shippingSlipGenerator;
            _mapper = mapper;
        }
Example #2
0
 public PhysicalProductRule(IShippingSlipGenerator shippingSlipGenerator)
 {
     _shippingSlipGenerator = shippingSlipGenerator;
 }
Example #3
0
 public PurchaseOrderProcessor(ICustomerRepository customerRepository, IShippingSlipGenerator shippingSlipGenerator)
 {
     _customerRepository    = customerRepository;
     _shippingSlipGenerator = shippingSlipGenerator;
 }