public async Task Transaction_nested_yny()
{
using (var scope1 = await db.GetTransactionAsync())
{
await InsertRecordsAsync(10);
using (var scope2 = await db.GetTransactionAsync())
{
await InsertRecordsAsync(10);
//scope2.Complete();
}
using (var scope3 = await db.GetTransactionAsync())
{
await InsertRecordsAsync(10);
scope3.Complete();
}
scope1.Complete();
}
Assert.AreEqual(await GetRecordCountAsync(), 0);
}