Exemple #1
0
        static void Main(string[] args)
        {
            ManagerChooser      myManager = new ManagerChooser();
            string              choice    = UI.ChooseInterface();
            ISweepstakesManager _Manager  = myManager.UserChoice(choice);

            MarketingFirm MyFirm = new MarketingFirm(_Manager);

            MyFirm.InsertNewSweepstakes(new Sweepstakes("Free car!"));
            MyFirm.GetNewSweepstakes();

            MyFirm.GetEntries();
            MyFirm.GetEntries();

            MyFirm.DetermineWinner();
            Console.ReadLine();
        }