public CartsController(ICartReader cartReader, ICartWriter cartWriter,
                        IReadOnlyRepository <Customer> customerRepository, IReadOnlyRepository <Product> productRepository)
 {
     this.cartReader         = cartReader;
     this.cartWriter         = cartWriter;
     this.customerRepository = customerRepository;
     this.productRepository  = productRepository;
 }
示例#2
0
 public CartController(
     ICartReader cartReader,
     CartPrinter cartPrinter,
     IMediator mediator)
 {
     this.cartReader  = cartReader;
     this.cartPrinter = cartPrinter;
     this.mediator    = mediator;
 }