public void Setup() { _weatherChannel = new WeatherChannel(); _isSubscribed = false; _triggerCount = 0; }
public WeatherPublisher(IWeatherChannel weatherChannel) { _weatherChannel = weatherChannel; }
public WeatherSubscriber(string name, IWeatherChannel weatherChannel) { Name = name; _weatherChannel = weatherChannel; _weatherChannel.Subscribe(name, OnProcessedDataReceived); }