ServiceStack.WebHost.Endpoints.Tests.IocServiceTests.Does_create_correct_instances_per_scope C# (CSharp) Method

Does_create_correct_instances_per_scope() private method

private Does_create_correct_instances_per_scope ( ) : void
return void
        public void Does_create_correct_instances_per_scope()
        {
            var client = CreateClient();
            var response1 = client.Get<IocScopeResponse>("iocscope");
            var response2 = client.Get<IocScopeResponse>("iocscope");

            Assert.That(response2.Results[typeof(FunqSingletonScope).Name], Is.EqualTo(1));
            Assert.That(response2.Results[typeof(FunqRequestScope).Name], Is.EqualTo(2));
            Assert.That(response2.Results[typeof(FunqNoneScope).Name], Is.EqualTo(4));

            Assert.That(response2.InjectsRequest, Is.EqualTo(2));

            Thread.Sleep(WaitForRequestCleanup);

            var stats = client.Get(new IocStats());
            Assert.That(stats.FunqRequestScopeDepDisposableProperty_DisposeCount, Is.EqualTo(2));
            Assert.That(stats.AltRequestScopeDepDisposableProperty_DisposeCount, Is.EqualTo(2));
        }