protected virtual void CreateConcreteService()
        {
            // Only instantiate a single service to avoid any possible confustion
            // over which test scenario is being run.
            //
            switch (RunTestCase)
            {
                case RunTestServiceCase.InheritAllMy:
                    container.Register(
                        Component
                            .For<ITestServiceBase>()
                            .ImplementedBy<TestServiceInheritAllMy>()
                            .Interceptors(typeof(TestStageInterceptor)));
                    testService = container.Resolve<ITestServiceBase>();
                    break;

                case RunTestServiceCase.OverrideAllMy:
                    container.Register(
                        Component
                            .For<ITestServiceBase>()
                            .ImplementedBy<TestServiceOverrideAllMy>()
                            .Interceptors(typeof(TestStageInterceptor)));
                    testService = container.Resolve<ITestServiceBase>();
                    break;

                case RunTestServiceCase.OverrideAll:
                    container.Register(
                        Component
                            .For<ITestServiceBase>()
                            .ImplementedBy<TestServiceOverrideAll>()
                            .Interceptors(typeof(TestStageInterceptor)));
                    testService = container.Resolve<ITestServiceBase>();
                    break;

                case RunTestServiceCase.OverrideMy:
                    container.Register(
                        Component
                            .For<ITestServiceBase>()
                            .ImplementedBy<TestServiceOverrideMy>()
                            .Interceptors(typeof(TestStageInterceptor)));
                    testService = container.Resolve<ITestServiceBase>();
                    break;

                default:
                    throw new UserAccessDeniedException( "Invalid RunTestCase: " + RunTestCase.ToString());
            }
            testService = container.Resolve<ITestServiceBase>();
        }
 public TestClass(ITestServiceBase testService)
 {
     _testService = testService;
 }