private static ICoeveryHost HostInitialization(HttpApplication application) { var host = CoeveryStarter.CreateHost(MvcSingletons); host.Initialize(); // initialize shells to speed up the first dynamic query host.BeginRequest(); host.EndRequest(); return(host); }
public void DefaultCoeveryHostInstanceReturnedByCreateHost() { var host = CoeveryStarter.CreateHost(b => b.RegisterInstance(new ControllerBuilder())); Assert.That(host, Is.TypeOf <DefaultCoeveryHost>()); }