public InventoryServiceFactory( IWarehouseOrderService warehouseOrderService, IIntraWarehouseOrderService intraWarehouseOrderService, ITreatmentOrderService treatmentOrderService, IProductionService productionService) { if (warehouseOrderService == null) { throw new ArgumentNullException("warehouseOrderService"); } _warehouseOrderService = warehouseOrderService; if (intraWarehouseOrderService == null) { throw new ArgumentNullException("intraWarehouseOrderService"); } _intraWarehouseOrderService = intraWarehouseOrderService; if (treatmentOrderService == null) { throw new ArgumentNullException("treatmentOrderService"); } _treatmentOrderService = treatmentOrderService; if (productionService == null) { throw new ArgumentNullException("productionService"); } _productionService = productionService; }
public TreatmentOrdersController(ITreatmentOrderService warehouseOrderService, IUserIdentityProvider userIdentityProvider) { if (warehouseOrderService == null) { throw new ArgumentNullException("warehouseOrderService"); } if (userIdentityProvider == null) { throw new ArgumentNullException("userIdentityProvider"); } _treatmentOrderService = warehouseOrderService; _userIdentityProvider = userIdentityProvider; }