Example #1
0
        static void Main(string[] args)
        {
            Factory       factory = new Factory();
            MarketingFirm market  = new MarketingFirm(factory.ChooseManager());

            market.RunSweepstakes();
        }
Example #2
0
        static void Main(string[] args)
        {
            MarketingFirm firm = new MarketingFirm(SweepstakeManagerFactory.CreateManager());

            firm.RunSweepstakes();
            firm.FinishSweepstakes();
        }
        static void Main(string[] args)
        {
            MarketingFirm marketingFirm = new MarketingFirm(ManagerFactory.SweepstakesAssign());

            marketingFirm.RunSweepstakes();

            Console.ReadLine();
        }