Exemple #1
0
        public void Should_Retrieve_Registered_Host_Successfully()
        {
            var host = WebApplicationContext.RegisterHost();

            Assert.IsNotNull(host);
            Assert.IsTrue(host is DefaultWebApplicationHost);
        }
Exemple #2
0
        protected void Application_Start()
        {
            modularAppHost = WebApplicationContext.RegisterHost();

            AreaRegistration.RegisterAllAreas();
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);

            modularAppHost.OnApplicationStart(this);
        }