Example #1
0
        static void Main(string[] args)
        {
            string      stringName  = "Jake";
            Sweepstakes sweepstakes = new Sweepstakes(stringName);
            Contestant  contestant  = null;

            sweepstakes.RegisterContestant(contestant);
            Console.ReadLine();
        }
        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);
            }
        }