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

Does_create_correct_instances_per_scope_with_exception_Async() private method

        public void Does_create_correct_instances_per_scope_with_exception_Async()
        {
            var client = CreateClient();
            try
            {
                client.Get<IocScopeResponse>("iocscopeasync?Throw=true");
            }
            catch { }
            try
            {
                client.Get<IocScopeResponse>("iocscopeasync?Throw=true");
            }
            catch { }

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