public void given_transient_registration()
 {
     container = new Container();
     container.Register <IEFCoreInstaller, ExampleInstaller>(Reuse.Singleton, FactoryMethod.ConstructorWithResolvableArguments);
     container.AddAutoTx();
     container.AddEFCore(DefaultLifeStyleOption.Transient);
 }
        public void SetUp()
        {
            //container = new Container().WithDependencyInjectionAdapter(); // the same configuration as for ASP.NET Core (test per web-request life style)
            container = new Container();             // use normal Container because rule .WithFactorySelector(Rules.SelectLastRegisteredFactory()) overrides registration configuration
            container.Register <IEFCoreInstaller, ExampleInstaller>(Reuse.Singleton, FactoryMethod.ConstructorWithResolvableArguments);
            container.AddAutoTx();
            container.AddEFCore(DefaultLifeStyleOption.PerWebRequest);

            //var app = new HttpApplication();
            //var lifestyle = new PerWebRequestLifestyleModule();
            //lifestyle.Init(app);
        }