/// <summary>
 /// Constructs a DeviceHive temperature sensor for a given sensor object
 /// </summary>
 /// <param name="dev">Parent device</param>
 /// <param name="Code">Equipment code</param>
 /// <param name="sensor">Temperature sensor</param>
 public TempSensor(DeviceEngine dev, string Code, ITempSensor sensor)
     : base(dev)
 {
     Debug.Print("Initializing " + Code + " temperature sensor.");
     name = Code;
     code = Code;
     //equipmentType.name = DeviceTypeName;
     type = DeviceTypeName; //v6
     Sensor = sensor;
     LastTemp = float.MinValue;
     Tolerance = DefaultTolerance;
     Period = DefaultPeriod;
     //Debug.Print("Temperature sensor initialized. Tolerance=" + Tolerance.ToString() + " deg, period=" + (Period / 1000).ToString() + "sec.");
 }
 public void Setup()
 {
     _uut = new ECS(15, _tempSensor = new TempSensor(), _heater = new FakeHeater());
 }
 public void Setup()
 {
     _uut = new TempSensor();
 }