public void StartNextSweepstake() { Sweepstakes sweep = manager.GetSweepstakes(); Contestant contestant = sweep.PickWinner(); UserInterface.DisplayWinner(contestant, sweep); }
public void Notify(IObserverPatternWinner observerPatternWinner) { if (Contestant contestant == true) // How to actually separate conditional messages { Console.Write("Congratulations {0} {1}, you are the winner!", firstName + lastName); UserInterface.DisplayWinner(contestant); } if else { (Contestant contestant == false) { Console.WriteLine("I'm sorry, you are not the winner of the sweepstakes."); } } }
public void PrintContestantInfo(Contestant contestant) // Not needed,just here for testing purposes { // Code here UserInterface.DisplayWinner(contestant); }