コード例 #1
0
ファイル: TestRunner.cs プロジェクト: MilenPavlov/EuroManager
        public void Run()
        {
            Console.SetWindowSize(120, 60);
            Console.SetBufferSize(120, 600);

            Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");

            var bootstrapper = new Bootstrapper();
            bootstrapper.Initialize();

            int worldCount = worldSimulator.GetWorldCount();
            bool createNewWorld = worldCount == 0;

            if (worldCount > 0)
            {
                Console.Write("Create new world (Y/N)? ");
                string answer = Console.ReadLine();
                createNewWorld = answer.Trim().StartsWith("Y", StringComparison.OrdinalIgnoreCase);
            }

            if (createNewWorld)
            {
                CreateNewWorld();
            }

            var multiSeasonTests = new MultipleSeasonTests();
            multiSeasonTests.Perform();
        }
コード例 #2
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();

            WebApiConfig.Register(GlobalConfiguration.Configuration);
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
            AuthConfig.RegisterAuth();

            var bootstrapper = new Bootstrapper();
            bootstrapper.Initialize();
        }