public PeripheryService(IInitControllersLayerService initControllersLayerService) { this.initControllersLayerService = initControllersLayerService; Periphery = new Periphery(); Periphery.FirstRelay = false; Periphery.SecondRelay = false; Periphery.VoltageSupply = false; }
public BoxService(IInitControllersLayerService initControllersLayerService) { this.initControllersLayerService = initControllersLayerService; Boxes = new List <Box>(); for (int i = 1; i < 3; i++) { Boxes.Add(new Box() { Id = i, Temperature = 30, Humidity = 40, Pressure = 100, Relay = false, VoltageSupply = false }); } }
public SamplesController(IInitControllersLayerService initControllersLayerService) { this.initControllersLayerService = initControllersLayerService ?? throw new ArgumentNullException(nameof(initControllersLayerService)); }