Пример #1
0
 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;
 }
Пример #2
0
 public OrderService(IAsyncRepository <Entities.Order> orderRepository,
                     IOrderLinesRepository orderLinesRepository)
 {
     _orderRepository      = orderRepository;
     _orderLinesRepository = orderLinesRepository;
 }