static void Main(string[] args) { while (true) // Used to loop back to sweepstakesFactory to select another manager type if needed. { SweepstakesFactory sweepstakesFactory = new SweepstakesFactory(); MarketingFirm newFirm = new MarketingFirm(sweepstakesFactory.DetermineManager(UserInterface.GetManagerType())); newFirm.DetermineMarketFirmAction(); } }
static void Main(string[] args) { while (true) { SweepstakesFactory sweepstakesFactory = new SweepstakesFactory(); MarketingFirm newFirm = new MarketingFirm(sweepstakesFactory.DetermineManager(UserInterface.GetManagerType())); newFirm.DetermineMarketFirmAction(); } }