public async Task DeleteStoreVerifyTablesDoNotExistTest() { await InstanceStore.DeleteStoreAsync(); using (var connection = GetConnection()) using (var command = connection.CreateCommand()) { command.CommandText = $"SELECT OBJECT_ID('{Settings.OrchestrationStateTableName}'), OBJECT_ID('{Settings.WorkItemTableName}')"; await connection.OpenAsync(); var reader = await command.ExecuteReaderAsync(); if (await reader.ReadAsync()) { Assert.AreEqual(DBNull.Value, reader.GetValue(0), "Orchestration table found."); Assert.AreEqual(DBNull.Value, reader.GetValue(1), "Work Item table found."); return; } } Assert.Fail("No rows returned by query."); }
public async Task DeleteStoreIdempotenceTest() { await InstanceStore.DeleteStoreAsync(); await InstanceStore.DeleteStoreAsync(); }