Exemplo n.º 1
0
 public HomeController(string homeName, TemperatureSensor tempSensor, AirConditioner airConditioner)
 {
     this.tempSensor     = tempSensor;
     this.airConditioner = airConditioner;
     Name = homeName;
     tempSensor.AddHandler(TemperatureChanged);
     CoolHome();
     new Thread(StartTempSensor).Start();
 }
Exemplo n.º 2
0
 public HomeController(string homeName, TemperatureSensor tempSensor) : this(homeName, tempSensor, new AirConditioner())
 {
 }