protected void given_context() { Host = new InMemoryHost(null); HostManager = Host.HostManager; HostManager.SetupCommunicationContext(Context = new InMemoryCommunicationContext()); DependencyManager.SetResolver(Host.Resolver); }
protected void given_context() { Host = new InMemoryHost(); HostManager = Host.HostManager; DependencyManager.SetResolver(Host.Resolver); RequestScope = Host.Resolver.CreateRequestScope(); HostManager.SetupCommunicationContext(Context = new InMemoryCommunicationContext()); }
public void setup() { Host = new InMemoryHost(startup: new StartupProperties { OpenRasta = { Errors = { HandleAllExceptions = false, HandleCatastrophicExceptions = false } } }); HostManager = Host.HostManager; AmbientContext.Current = new AmbientContext(); RequestScope = Host.Resolver.CreateRequestScope(); HostManager.SetupCommunicationContext(Context = new InMemoryCommunicationContext()); }