Ejemplo n.º 1
0
 protected void given_context()
 {
     Host        = new InMemoryHost(null);
     HostManager = Host.HostManager;
     HostManager.SetupCommunicationContext(Context = new InMemoryCommunicationContext());
     DependencyManager.SetResolver(Host.Resolver);
 }
Ejemplo n.º 2
0
 protected void given_context()
 {
     Host        = new InMemoryHost();
     HostManager = Host.HostManager;
     DependencyManager.SetResolver(Host.Resolver);
     RequestScope = Host.Resolver.CreateRequestScope();
     HostManager.SetupCommunicationContext(Context = new InMemoryCommunicationContext());
 }
Ejemplo n.º 3
0
 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());
 }