public override void AttachObserver(IObserver observer) { var items = orderedItems.GetAll(); for (int i = 0; i < items.Count(); i++) { Plate plate = (Plate)items.ElementAt(i); plate.AttachObserver(observer); } }
public override void notifyObservers() { foreach (IObserver observer in observers.GetAll()) { observer.update(plateObservable); } }
public void TestNumberOfElements() { var numberOfElements = array.GetAll().Count; Assert.AreEqual(3, numberOfElements); }