public void GetSensorByIndex()
        {
            var hardwareController = new TestHardwareController();

            var sensor = new TestSensor(1);
            hardwareController.AddSensor(sensor);

            Assert.AreEqual(sensor, hardwareController.GetSensor(0));
        }
        public void GetSensorByIndexThrowsException()
        {
            var hardwareController = new TestHardwareController();

            var sensor = new TestSensor(1);
            hardwareController.AddSensor(sensor);

            hardwareController.GetSensor(4);
        }
        public void GetSensorCount()
        {
            var random = new Random();
            var hardwareController = new TestHardwareController();

            int sensorCount = random.Next(0, 20);
            for (int i = 0; i < sensorCount; i++)
            {
                var sensor = new TestSensor(i);
                hardwareController.AddSensor(sensor);
            }

            Assert.AreEqual(sensorCount, hardwareController.GetSensorCount());
        }
        public void RemoveSensorByID()
        {
            var hardwareController = new TestHardwareController();

            var sensor = new TestSensor(1);
            hardwareController.AddSensor(sensor);

            hardwareController.RemoveSensorByID(1);

            Assert.AreEqual(0, hardwareController.GetSensorCount());
        }