コード例 #1
0
        protected override void Given()
        {
            IoC.Container = null;
            new ServiceLayerConfiguration(GetType().Assembly, GetType().Assembly, typeof(Agatha.Unity.Container))
            .RegisterRequestHandlerInterceptor <TestInterceptor>()
            .Initialize();

            request = new SpyRequest();
        }
コード例 #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();
 }
コード例 #3
0
        protected override void Given()
        {
            IoC.Container = null;
            new ServiceLayerConfiguration(GetType().Assembly, GetType().Assembly, typeof(Agatha.Castle.Container))
            .RegisterRequestHandlerInterceptor <FailingBeforeHandlingRequestInterceptor>()
            .RegisterRequestHandlerInterceptor <SubSequentInterceptor>()
            .Initialize();

            request = new SpyRequest();
        }