コード例 #1
0
ファイル: Simulation.cs プロジェクト: elezibeth/Sweepstakes
        public void Run()
        {
            mktfrm.CreateASweepstakes(mktfrm.manager);
            Contestant  con1  = mktfrm.GetContestantInformation();
            Contestant  con2  = mktfrm.GetContestantInformation();
            Contestant  con3  = mktfrm.GetContestantInformation();
            Sweepstakes sweep = mktfrm.GetSweepstakes(mktfrm.manager);

            sweep.RegisterContestant(con1);
            sweep.RegisterContestant(con2);
            sweep.RegisterContestant(con3);
            Contestant winner = sweep.PickWinner();

            sweep.PrintContestantInfo(winner);
        }