public void AddQuacker(IQuackable quacker) { _quackers.Add(quacker); foreach (var observer in _observers) { quacker.Subscribe(observer); } }
public IDisposable Subscribe(IObserver <IQuackable> observer) { return(Duck.Subscribe(observer)); }