public void NotifyObserver(WrestlingMatch wrestlingMatch) { foreach (var observer in _observers) { observer.Update(wrestlingMatch); } }
public void SendMatchResult() { Console.WriteLine("What happened in the match today?"); string matchResult = Console.ReadLine(); Console.WriteLine("\n"); WrestlingMatch match = new WrestlingMatch(matchResult); NotifyObserver(match); }