public void CreateSweepstakes() { for (int i = 0; i < numberOfSweepstakes; i++) { string name = UserInterface.GetUserStringInput("Please enter the name of the new Sweepstakes"); Sweepstakes sweepstakes = new Sweepstakes(name); int numberOfContestants = UserInterface.GetUserIntInput("Please enter the amount of contestants you would like to add"); for (int j = 0; j < numberOfContestants; j++) { Contestant contestant = new Contestant(); sweepstakes.RegisterContestant(contestant); } managementChoice.InsertSweepstakes(sweepstakes); } }
public MarketingFirm(ISweepstakesManager managementChoice) { this.managementChoice = managementChoice; numberOfSweepstakes = UserInterface.GetUserIntInput("How many Sweepstakes would you like to run?"); }