public void PrintContestantInfo(Contestant contestant)
 {
     UserInterface.DisplayWinner(contestant);
 }
 public void RegisterContestant(Contestant contestant)
 {
     contestant.registrationNumber = sweepstakesContestants.Count + 1; // the registration number is related to the count,
     sweepstakesContestants.Add(contestant.registrationNumber, contestant);
 }
Ejemplo n.º 3
0
 public string PickWinner(Contestant contestant)
 {
     return(contestant.firstName + " " + contestant.lastName);
 }
Ejemplo n.º 4
0
 public void CreateContestant(Sweepstakes sweepstakes, Contestant contestant)
 {
     sweepstakes.RegisterContestant(contestant);
 }
Ejemplo n.º 5
0
 public void RegisterContestant(Contestant contestant)
 {
     UserInterface.AssignContestantInformation(contestant, this);
     contestants.Add(contestant.registrationNumber, contestant);
 }