public OfficeConfiguration( IDeviceRegistryService deviceService, IAreaRegistryService areaService, OutpostDeviceService outpostDeviceService, CCToolsDeviceService ccToolsBoardService, IRemoteSocketService remoteSocketService, ActuatorFactory actuatorFactory, SensorFactory sensorFactory, IMessageBrokerService messageBroker) { _messageBroker = messageBroker ?? throw new ArgumentNullException(nameof(messageBroker)); _outpostDeviceService = outpostDeviceService ?? throw new ArgumentNullException(nameof(outpostDeviceService)); _deviceService = deviceService ?? throw new ArgumentNullException(nameof(deviceService)); _areaService = areaService ?? throw new ArgumentNullException(nameof(areaService)); //_ccToolsBoardService = ccToolsBoardService ?? throw new ArgumentNullException(nameof(ccToolsBoardService)); _remoteSocketService = remoteSocketService ?? throw new ArgumentNullException(nameof(remoteSocketService)); _actuatorFactory = actuatorFactory ?? throw new ArgumentNullException(nameof(actuatorFactory)); _sensorFactory = sensorFactory ?? throw new ArgumentNullException(nameof(sensorFactory)); }
public KitchenConfiguration( ISystemEventsService systemEventsService, IAreaRegistryService areaService, IDeviceRegistryService deviceService, CCToolsDeviceService ccToolsDeviceService, OutpostDeviceService outpostDeviceService, AutomationFactory automationFactory, ActuatorFactory actuatorFactory, SensorFactory sensorFactory) { _systemEventsService = systemEventsService ?? throw new ArgumentNullException(nameof(systemEventsService)); _areaService = areaService ?? throw new ArgumentNullException(nameof(areaService)); _deviceService = deviceService ?? throw new ArgumentNullException(nameof(deviceService)); _ccToolsBoardService = ccToolsDeviceService ?? throw new ArgumentNullException(nameof(ccToolsDeviceService)); _outpostDeviceService = outpostDeviceService ?? throw new ArgumentNullException(nameof(outpostDeviceService)); _automationFactory = automationFactory ?? throw new ArgumentNullException(nameof(automationFactory)); _actuatorFactory = actuatorFactory ?? throw new ArgumentNullException(nameof(actuatorFactory)); _sensorFactory = sensorFactory ?? throw new ArgumentNullException(nameof(sensorFactory)); }