Example #1
0
 public async Task TestAsyncExecuteWithFuncLambdaAndRetryPolicyThrowsExceptionAfterDispose()
 {
     testDriver.Dispose();
     await Assert.ThrowsExceptionAsync <QldbDriverException>(
         async() => await testDriver.Execute(
             async txn =>
     {
         await txn.Execute("testStatement");
         return(Task.FromResult("testReturnValue"));
     },
             Driver.RetryPolicy.Builder().Build()));
 }
 public static void ClassCleanup()
 {
     qldbDriver.Dispose();
     integrationTestBase.RunForceDeleteLedger();
 }