public async Task ConnectAsync_LedgerDoesNotExist_ThrowsBadRequestException()
 {
     using (var qldbDriver = integrationTestBase.CreateAsyncDriver(amazonQldbSessionConfig, 0, "NonExistentLedger"))
     {
         await qldbDriver.ListTableNames();
     }
 }
        public static async Task SetUp(TestContext context)
        {
            // Get AWS configuration properties from .runsettings file.
            string       region     = context.Properties["region"].ToString();
            const string ledgerName = "DotnetAsyncStatementExecution";

            amazonQldbSessionConfig = IntegrationTestBase.CreateAmazonQLDBSessionConfig(region);
            integrationTestBase     = new IntegrationTestBase(ledgerName, region);

            integrationTestBase.RunForceDeleteLedger();

            integrationTestBase.RunCreateLedger();
            qldbDriver = integrationTestBase.CreateAsyncDriver(amazonQldbSessionConfig, new ObjectSerializer());

            // Create table.
            var query = $"CREATE TABLE {Constants.TableName}";

            Assert.AreEqual(1, await ExecuteAndReturnRowCount(query));

            Assert.IsTrue(await ConfirmTableExists(Constants.TableName));
        }
 public async Task ExecuteAsync_UpdateSameRecordAtSameTime_ThrowsOccException()
 {
     // Create a driver that does not retry OCC errors
     AsyncQldbDriver driver = integrationTestBase.CreateAsyncDriver(amazonQldbSessionConfig, default, default);