public OrderManagementService(IOrderCatalogueContext orderCatalogueContext, ICustomerContext customerContext, IManagerContext managerContext, IProductStoreContext productStoreContext) { _orderCatalogueContext = orderCatalogueContext ?? throw new ArgumentNullException(nameof(orderCatalogueContext)); _customerContext = customerContext ?? throw new ArgumentNullException(nameof(customerContext)); _managerContext = managerContext ?? throw new ArgumentNullException(nameof(managerContext)); _productStoreContext = productStoreContext ?? throw new ArgumentNullException(nameof(productStoreContext)); }
public ManagerControlService(IManagerContext context) { _context = context ?? throw new ArgumentNullException(nameof(context)); }