예제 #1
0
 public void RegisterContestant(Contestant contestant)
 {
     contestant.registrationNumber++;
     contestant.firstName    = UserInterface.GetUserInputFor("first name.");
     contestant.lastName     = UserInterface.GetUserInputFor("last name.");
     contestant.emailAddress = UserInterface.GetUserInputFor("email address.");
     UserInterface.DisplayRegistrationNumber(contestant.registrationNumber);
     contestants.Add(contestant.registrationNumber, contestant);
 }