Ejemplo n.º 1
0
 protected override void Given()
 {
     IoC.Container = null;
     request       = new InterceptedSpyRequest();
     new ServiceLayerAndClientConfiguration(typeof(ThrowingRequestHandler).Assembly, GetType().Assembly, new Agatha.Unity.Container())
     .RegisterRequestHandlerInterceptor <InterceptingInterceptor>()
     .RegisterRequestHandlerInterceptor <SubSequentInterceptor>()
     .Initialize();
 }
Ejemplo n.º 2
0
 protected override void Given()
 {
     erroneousRequest         = new InterceptedSpyRequest();
     subsequentRequest        = new SpyRequest();
     anotherSubsequentRequest = new SpyRequest();
     subsequentRequests       = new[] { subsequentRequest, anotherSubsequentRequest };
     new ServiceLayerAndClientConfiguration(typeof(ThrowingRequestHandler).Assembly, GetType().Assembly, new Agatha.Unity.Container())
     .RegisterRequestHandlerInterceptor <TestInterceptor>()
     .Initialize();
 }