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