Ejemplo n.º 1
0
 public ThemostatController(IThermostatService thermostatService)
 {
     _thermostatService              = thermostatService;
     _thermostatService.Hot         += OnSwitchOff;
     _thermostatService.Cold        -= OnSwitchOn;
     _thermostatService.TempChanged += OnTempChanged;
 }
Ejemplo n.º 2
0
 public ThermostatController(IThermostatService thermostatService, IMailService mailService)
 {
     _thermostatService = thermostatService;
     _mailService       = mailService;
 }