Example #1
0
        //[Fact]
        public void RuntimeFactoryScopedTest()
        {
            IRuntime runtime1;

            using (Resolver.BeginExtendedScope(Scope.Context))
            {
                runtime1 = RuntimeFactory.CreateRuntime();
                runtime1.InitializeWithConfigSetName("test");
            }
            IRuntime runtime2;

            using (Resolver.BeginExtendedScope(Scope.Context))
            {
                runtime2 = RuntimeFactory.CreateRuntime();
            }
            Assert.NotNull(runtime1);
            Assert.NotNull(runtime2);
            Assert.NotEqual(runtime1, runtime2);
        }