CQRS.Tests.ServiceBus.MessageHandlersTestBase.SetUpContainerAndBeginScope C# (CSharp) Method

SetUpContainerAndBeginScope() private method

private SetUpContainerAndBeginScope ( ) : void
return void
        public void SetUpContainerAndBeginScope()
        {
            Container = new WindsorContainer();
            Container.ConfigureWiringForTestsCallBeforeAllOtherWiring();
            Container.Register(
                Component.For<SynchronousBus>(),
                Component.For<EventsReplayer>(),
                Component.For<IWindsorContainer>().Instance(Container));
            new MessageHandlersRegister().RegisterMessageHandlersForTestingFromAssemblyContaining<MessageHandlersTestBase>(Container);
            Container.ConfigureWiringForTestsCallAfterAllOtherWiring();
            _scope = Container.BeginScope();
        }