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));
 }
Exemplo n.º 2
0
 public ManagerControlService(IManagerContext context)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
 }