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);
 }
示例#3
0
 public string PickWinner(Contestant contestant)
 {
     return(contestant.firstName + " " + contestant.lastName);
 }
示例#4
0
 public void CreateContestant(Sweepstakes sweepstakes, Contestant contestant)
 {
     sweepstakes.RegisterContestant(contestant);
 }
示例#5
0
 public void RegisterContestant(Contestant contestant)
 {
     UserInterface.AssignContestantInformation(contestant, this);
     contestants.Add(contestant.registrationNumber, contestant);
 }