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

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