public OrderLinesController(IStorefrontContext storefrontContext, IVisitorContext visitorContext, IOrderLinesRepository orderLinesRepository, IModelProvider modelProvider, ICartManager cartManager) : base(storefrontContext) { Assert.IsNotNull(storefrontContext, nameof(storefrontContext)); Assert.IsNotNull(visitorContext, nameof(visitorContext)); Assert.IsNotNull(orderLinesRepository, nameof(orderLinesRepository)); _orderLinesRepository = orderLinesRepository; _modelProvider = modelProvider; _visitorContext = visitorContext; _cartManager = cartManager; }
public OrderService(IAsyncRepository <Entities.Order> orderRepository, IOrderLinesRepository orderLinesRepository) { _orderRepository = orderRepository; _orderLinesRepository = orderLinesRepository; }