public void Can_use_custom_scope_accessor_with_scoped_lifestyle_generic()
        {
            StaticScopeAccessor.ResetScope();
            Container.Register(Component.For <A>().LifestyleScoped <StaticScopeAccessor>());

            var a1 = Container.Resolve <A>();
            var a2 = Container.Resolve <A>();

            Assert.AreSame(a1, a2);
        }
        public void Can_use_custom_scope_accessor_with_scoped_lifestyle_multiple()
        {
            StaticScopeAccessor.ResetScope();
            Container.Register(Classes.FromThisAssembly()
                               .Where(c => c.Is <A>())
                               .LifestyleScoped <StaticScopeAccessor>());

            var a1 = Container.Resolve <A>();
            var a2 = Container.Resolve <A>();

            Assert.AreSame(a1, a2);
        }