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

Does_create_correct_instances_per_scope_Async() private method

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

            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));

            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));
        }