コード例 #1
0
        static void Main(string[] args)
        {
            ISweepstakesManager manager;

            manager = ChooseManager.PickManager();
            MarketingFirm marketfirm = new MarketingFirm(manager);

            marketfirm.StartSweepstakes("yes");
            Console.ReadLine();
        }
コード例 #2
0
        static void Main(string[] args)
        {
            SweepstakesFactoryDesign sweepstakesFactoryDesign = new SweepstakesFactoryDesign();
            string answer = UserInterface.AskQueueOrStack();
            ISweepstakesManager sweepstakesManager = sweepstakesFactoryDesign.DetermineManager(answer);
            MarketingFirm       marketingFirm      = new MarketingFirm(sweepstakesManager);

            marketingFirm.StartSweepstakes();
            marketingFirm.EndSweepstakes();

            Console.ReadLine();
        }