public static async Task Initialize(TestContext _) { // Set the correct keyvault name configService = new E2ETestConfigService("<enter keyvault name>"); await configService.LoadConfigurationAsync().ConfigureAwait(false); var storageAccount = CloudStorageAccount.Parse(configService.TableStorageAccountConnectionString); // Create a table client for interacting with the table service var tableClient = storageAccount.CreateCloudTableClient(); // Create a table client for interacting with the table service var mediaServiceInstanceHealthTable = tableClient.GetTableReference(configService.MediaServiceInstanceHealthTableName); await mediaServiceInstanceHealthTable.CreateIfNotExistsAsync().ConfigureAwait(false); mediaServiceInstanceHealthTableStorageService = new TableStorageService(mediaServiceInstanceHealthTable); await mediaServiceInstanceHealthTableStorageService.DeleteAllAsync <MediaServiceInstanceHealthModelTableEntity>().ConfigureAwait(false); var jobOutputStatusTable = tableClient.GetTableReference(configService.JobOutputStatusTableName); await jobOutputStatusTable.CreateIfNotExistsAsync().ConfigureAwait(false); jobOutputStatusTableStorageService = new TableStorageService(jobOutputStatusTable); await jobOutputStatusTableStorageService.DeleteAllAsync <JobOutputStatusModelTableEntity>().ConfigureAwait(false); var mediaServiceCallHistoryTable = tableClient.GetTableReference(configService.MediaServiceCallHistoryTableName); mediaServiceCallHistoryTable.CreateIfNotExists(); var mediaServiceCallHistoryTableStorageService = new TableStorageService(mediaServiceCallHistoryTable); mediaServiceCallHistoryStorageService = new MediaServiceCallHistoryStorageService(mediaServiceCallHistoryTableStorageService); await mediaServiceCallHistoryTableStorageService.DeleteAllAsync <MediaServiceCallHistoryModelTableEntity>().ConfigureAwait(false); jobRequestQueue = new QueueClient(configService.StorageAccountConnectionString, configService.JobRequestQueueName); await jobRequestQueue.CreateIfNotExistsAsync().ConfigureAwait(false); jobVerificationRequestQueue = new QueueClient(configService.StorageAccountConnectionString, configService.JobVerificationRequestQueueName); await jobVerificationRequestQueue.CreateIfNotExistsAsync().ConfigureAwait(false); }