CQRS.Tests.TemporaryLocalDbManager.RegisterWithContainer C# (CSharp) Method

RegisterWithContainer() public method

public RegisterWithContainer ( IWindsorContainer container ) : void
container IWindsorContainer
return void
        public void RegisterWithContainer(IWindsorContainer container)
        {
            container.Register(Component.For<TemporaryLocalDbManager>().UsingFactoryMethod(() => this));//Register and resolve instance once so that it is disposed with the container
            container.Resolve<TemporaryLocalDbManager>();
        }