public TableDataStore <T> GetNewTableDataStoreWithStorageCredentials <T>(string testContext, bool createIfNotExists = true, bool isPublic = false) where T : new() { var tableAndContainerName = TableAndContainerNames.ContainsKey(testContext) ? TableAndContainerNames[testContext] : CreateTestTableAndContainerNames(testContext); var tableCreds = AzureStorageUtils.GetStorageCredentialsFromConnectionString(ConnectionString); var blobCreds = AzureStorageUtils.GetStorageSharedKeyCredentialFromConnectionString(ConnectionString); var tableUrl = AzureStorageUtils.GetStorageUriFromConnectionString(ConnectionString, AzureStorageUtils.CredentialType.TableStorage); var blobUrl = AzureStorageUtils.GetStorageUriFromConnectionString(ConnectionString, AzureStorageUtils.CredentialType.BlobStorage); return(new TableDataStore <T>(tableCreds, new StorageUri(new Uri(tableUrl)), tableAndContainerName, false, blobCreds, new Uri(blobUrl), tableAndContainerName, false, PublicAccessType.None)); }