public LowerBathroomConfiguration( IDeviceService deviceService, ISchedulerService schedulerService, IAreaService areaService, SynonymService synonymService, AutomationFactory automationFactory, ActuatorFactory actuatorFactory, SensorFactory sensorFactory) { if (deviceService == null) throw new ArgumentNullException(nameof(deviceService)); if (schedulerService == null) throw new ArgumentNullException(nameof(schedulerService)); if (areaService == null) throw new ArgumentNullException(nameof(areaService)); if (synonymService == null) throw new ArgumentNullException(nameof(synonymService)); if (automationFactory == null) throw new ArgumentNullException(nameof(automationFactory)); if (actuatorFactory == null) throw new ArgumentNullException(nameof(actuatorFactory)); if (sensorFactory == null) throw new ArgumentNullException(nameof(sensorFactory)); _deviceService = deviceService; _schedulerService = schedulerService; _areaService = areaService; _synonymService = synonymService; _automationFactory = automationFactory; _actuatorFactory = actuatorFactory; _sensorFactory = sensorFactory; }
public BedroomConfiguration( IDeviceService deviceService, IAreaService areaService, CCToolsBoardService ccToolsBoardService, SynonymService synonymService, ActuatorFactory actuatorFactory, SensorFactory sensorFactory, AutomationFactory automationFactory) { if (deviceService == null) throw new ArgumentNullException(nameof(deviceService)); if (areaService == null) throw new ArgumentNullException(nameof(areaService)); if (ccToolsBoardService == null) throw new ArgumentNullException(nameof(ccToolsBoardService)); if (synonymService == null) throw new ArgumentNullException(nameof(synonymService)); if (actuatorFactory == null) throw new ArgumentNullException(nameof(actuatorFactory)); if (sensorFactory == null) throw new ArgumentNullException(nameof(sensorFactory)); if (automationFactory == null) throw new ArgumentNullException(nameof(automationFactory)); _deviceService = deviceService; _areaService = areaService; _ccToolsBoardService = ccToolsBoardService; _synonymService = synonymService; _actuatorFactory = actuatorFactory; _sensorFactory = sensorFactory; _automationFactory = automationFactory; }
public Configuration( CCToolsBoardService ccToolsBoardService, IPi2GpioService pi2GpioService, SynonymService synonymService, IAreaService areaService, ActuatorFactory actuatorFactory, SensorFactory sensorFactory, AutomationFactory automationFactory) { if (ccToolsBoardService == null) throw new ArgumentNullException(nameof(ccToolsBoardService)); if (pi2GpioService == null) throw new ArgumentNullException(nameof(pi2GpioService)); if (synonymService == null) throw new ArgumentNullException(nameof(synonymService)); if (actuatorFactory == null) throw new ArgumentNullException(nameof(actuatorFactory)); if (sensorFactory == null) throw new ArgumentNullException(nameof(sensorFactory)); if (automationFactory == null) throw new ArgumentNullException(nameof(automationFactory)); _ccToolsBoardService = ccToolsBoardService; _pi2GpioService = pi2GpioService; _synonymService = synonymService; _areaService = areaService; _actuatorFactory = actuatorFactory; _sensorFactory = sensorFactory; _automationFactory = automationFactory; }