public TemperatureObserver(WeatherSubject dataSource) { _dataSource = dataSource; _dataSource.Register(this); }
public WindSpeedObserver(WeatherSubject dataSource) { _dataSource = dataSource; _dataSource.Register(this); }