예제 #1
0
 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;
 }