public void Should_Retrieve_Registered_Host_Successfully() { var host = WebApplicationContext.RegisterHost(); Assert.IsNotNull(host); Assert.IsTrue(host is DefaultWebApplicationHost); }
protected void Application_Start() { modularAppHost = WebApplicationContext.RegisterHost(); AreaRegistration.RegisterAllAreas(); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); modularAppHost.OnApplicationStart(this); }