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