static void Main(string[] args) { XmlConfigurator.Configure(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Logger.Info("Starting up"); BalloonStoreOptions options = new BalloonStoreOptions(); if (Parser.Default.ParseArguments(args, options)) { options.SetDefaults(); BalloonStore store = new BalloonStore(options); BalloonStoreForm form = new BalloonStoreForm(store); store.Start(); Application.Run(form); } else { Logger.Info("Provided args: " + string.Join(" ", args)); Logger.Info(options.GetUsage()); } }
public void SetUp() { BalloonStoreOptions options = new BalloonStoreOptions(); options.GameId = GAME_ID; options.GameManagerId = GM_ID; options.NumBalloons = BALLOONS; options.StoreIndex = 1; options.SetDefaults(); balloonStore = new TestBalloonStore(options); balloonStore.CommSubsystem.ConversationFactory.DefaultMaxRetries = 1; }