private Transaction_complete ( ) : System.Threading.Tasks.Task | ||
return | System.Threading.Tasks.Task |
public async Task Transaction_complete()
{
using (var scope = await db.GetTransactionAsync())
{
await InsertRecordsAsync(10);
scope.Complete();
}
Assert.AreEqual(await GetRecordCountAsync(), 10);
}