public CommonTestFixture() { TestUtilities.StartTest(); try { UndoContext.Current.Start(); CatalogManagementHelper = new DataLakeAnalyticsCatalogManagementHelper(this); CatalogManagementHelper.TryRegisterSubscriptionForResource(); ResourceGroupName = TestUtilities.GenerateName("abarg1"); DataLakeAnalyticsAccountName = TestUtilities.GenerateName("testadlac1"); DataLakeStoreAccountName = TestUtilities.GenerateName("testadlsc1"); DatabaseName = TestUtilities.GenerateName("testdb1"); TableName = TestUtilities.GenerateName("testtbl1"); TvfName = TestUtilities.GenerateName("testtvf1"); ProcName = TestUtilities.GenerateName("testproc1"); ViewName = TestUtilities.GenerateName("testview1"); CredentialName = TestUtilities.GenerateName("testcred1"); SecretName = TestUtilities.GenerateName("testsecret1"); SecretPwd = TestUtilities.GenerateName("testsecretpwd1"); CatalogManagementHelper.TryCreateResourceGroup(ResourceGroupName, Location); // create the DataLake accounts in the resource group and establish the host URL to use. this.HostUrl = CatalogManagementHelper.TryCreateDataLakeAnalyticsAccount(this.ResourceGroupName, this.Location, this.DataLakeStoreAccountName, this.DataLakeAnalyticsAccountName); TestUtilities.Wait(120000); // Sleep for two minutes to give the account a chance to provision the queue CatalogManagementHelper.CreateCatalog(this.ResourceGroupName, this.DataLakeAnalyticsAccountName, this.DatabaseName, this.TableName, this.TvfName, this.ViewName, this.ProcName); } catch (Exception) { Cleanup(); throw; } finally { TestUtilities.EndTest(); } }