public void CreateManager(string type)
 {
     manager = ManagerFactory.CreateManager(type);
 }
 public MarketingFirm(string stackOrQueue)
 {
     _sweepstakesManager = ManagerFactory.GetSweepstakesManager(stackOrQueue);
 }
Beispiel #3
0
        private ISweepstakesManager GetSweepstakesManager()
        {
            int choice = UI.GetManagerChoice();

            return(ManagerFactory.BuildSweepstakesManager(choice));
        }
Beispiel #4
0
 public void CreateMarketingFirmWithManager()
 {
     firm = new MarketingFirm(ManagerFactory.ChooseManager());
 }
Beispiel #5
0
 static void Main(string[] args)
 {
     ISweepstakesManager manager       = ManagerFactory.CreateManager();
     MarketingFirm       marketingFirm = new MarketingFirm(manager);
 }