Exemplo n.º 1
0
 public WeatherController(ILogger logger, IStorage storage, IWeatherProvider provider, IWeatherDisplayer displayer)
 {
     _logger             = logger;
     _storage            = storage;
     _provider           = provider;
     _displayer          = displayer;
     _storage.DataSaved += _displayer.Display;
 }
Exemplo n.º 2
0
 public UpdateTrigger(IWeatherController weatherController, IWeatherDisplayer weatherDisplayer, ILogger logger)
 {
     _weatherController = weatherController;
     _weatherDisplayer  = weatherDisplayer;
     _logger            = logger;
 }
Exemplo n.º 3
0
 public Application(IUpdateTrigger UpdateTrigger, IWeatherDisplayer displayer)
 {
     _trigger   = UpdateTrigger;
     _displayer = displayer;
 }