1313using Azure . Core . TestFramework ;
1414using Azure . Storage . Blobs . Models ;
1515using Azure . Storage . Blobs . Specialized ;
16+ using Azure . Storage . Blobs . Tests ;
1617using Azure . Storage . Sas ;
1718using Azure . Storage . Shared ;
1819using Azure . Storage . Test ;
@@ -78,11 +79,11 @@ public void Ctor_Uri()
7879 public void Ctor_TokenAuth_Http ( )
7980 {
8081 // Arrange
81- Uri httpUri = new Uri ( TestConfigOAuth . BlobServiceEndpoint ) . ToHttp ( ) ;
82+ Uri httpUri = new Uri ( Tenants . TestConfigOAuth . BlobServiceEndpoint ) . ToHttp ( ) ;
8283
8384 // Act
8485 TestHelper . AssertExpectedException (
85- ( ) => new AppendBlobClient ( httpUri , GetOAuthCredential ( ) ) ,
86+ ( ) => new AppendBlobClient ( httpUri , Tenants . GetOAuthCredential ( ) ) ,
8687 new ArgumentException ( "Cannot use TokenCredential without HTTPS." ) ) ;
8788 }
8889
@@ -431,7 +432,7 @@ public async Task CreateAsync_EncryptionScopeAccountSAS()
431432 // Arrange
432433 string containerName = GetNewContainerName ( ) ;
433434 await using DisposingContainer test = await GetTestContainerAsync ( containerName : containerName ) ;
434- BlobServiceClient blobServiceClient = GetServiceClient_SharedKey ( ) ;
435+ BlobServiceClient blobServiceClient = BlobsClientBuilder . GetServiceClient_SharedKey ( ) ;
435436
436437 AccountSasBuilder accountSasBuilder = new AccountSasBuilder (
437438 permissions : AccountSasPermissions . All ,
@@ -457,7 +458,7 @@ public async Task CreateAsync_EncryptionScopeAccountSAS()
457458 public async Task CreateAsync_EncryptionScopeIdentitySAS ( )
458459 {
459460 // Arrange
460- BlobServiceClient oauthService = GetServiceClient_OauthAccount ( ) ;
461+ BlobServiceClient oauthService = BlobsClientBuilder . GetServiceClient_OAuth ( ) ;
461462 await using DisposingContainer test = await GetTestContainerAsync ( oauthService ) ;
462463
463464 Response < UserDelegationKey > userDelegationKey = await oauthService . GetUserDelegationKeyAsync (
@@ -478,7 +479,7 @@ public async Task CreateAsync_EncryptionScopeIdentitySAS()
478479 BlobUriBuilder blobUriBuilder = new BlobUriBuilder ( test . Container . Uri )
479480 {
480481 BlobName = blobName ,
481- Sas = blobSasBuilder . ToSasQueryParameters ( userDelegationKey . Value , TestConfigOAuth . AccountName )
482+ Sas = blobSasBuilder . ToSasQueryParameters ( userDelegationKey . Value , Tenants . TestConfigOAuth . AccountName )
482483 } ;
483484 AppendBlobClient sasBlob = InstrumentClient ( new AppendBlobClient ( blobUriBuilder . ToUri ( ) , GetOptions ( ) ) ) ;
484485
@@ -502,7 +503,7 @@ public async Task CreateAsync_Headers()
502503 public async Task CreateAsync_Error ( )
503504 {
504505 // Arrange
505- BlobServiceClient blobService = GetServiceClient_SharedKey ( ) ;
506+ BlobServiceClient blobService = BlobsClientBuilder . GetServiceClient_SharedKey ( ) ;
506507 BlobContainerClient containerClient = InstrumentClient ( blobService . GetBlobContainerClient ( GetNewContainerName ( ) ) ) ;
507508 AppendBlobClient blob = InstrumentClient ( containerClient . GetAppendBlobClient ( GetNewBlobName ( ) ) ) ;
508509
@@ -688,7 +689,7 @@ public async Task CreateIfNotExistsAsync_Exists()
688689 public async Task CreateIfNotExistsAsync_Error ( )
689690 {
690691 // Arrange
691- BlobServiceClient serviceClient = GetServiceClient_SharedKey ( ) ;
692+ BlobServiceClient serviceClient = BlobsClientBuilder . GetServiceClient_SharedKey ( ) ;
692693 BlobContainerClient containerClient = InstrumentClient ( serviceClient . GetBlobContainerClient ( GetNewContainerName ( ) ) ) ;
693694 AppendBlobClient blob = InstrumentClient ( containerClient . GetAppendBlobClient ( GetNewBlobName ( ) ) ) ;
694695
@@ -1588,7 +1589,7 @@ await destBlob.AppendBlockFromUriAsync(
15881589 public async Task AppendBlockFromUriAsync_SourceBearerToken ( )
15891590 {
15901591 // Arrange
1591- BlobServiceClient serviceClient = GetServiceClient_OauthAccount ( ) ;
1592+ BlobServiceClient serviceClient = BlobsClientBuilder . GetServiceClient_OAuth ( ) ;
15921593 await using DisposingContainer test = await GetTestContainerAsync (
15931594 service : serviceClient ,
15941595 publicAccessType : PublicAccessType . None ) ;
@@ -1623,7 +1624,7 @@ public async Task AppendBlockFromUriAsync_SourceBearerToken()
16231624 public async Task AppendBlockFromUriAsync_SourceBearerTokenFail ( )
16241625 {
16251626 // Arrange
1626- BlobServiceClient serviceClient = GetServiceClient_OauthAccount ( ) ;
1627+ BlobServiceClient serviceClient = BlobsClientBuilder . GetServiceClient_OAuth ( ) ;
16271628 await using DisposingContainer test = await GetTestContainerAsync (
16281629 service : serviceClient ,
16291630 publicAccessType : PublicAccessType . None ) ;
@@ -2006,7 +2007,7 @@ public async Task OpenWriteAsync_AlternatingWriteAndFlush()
20062007 public async Task OpenWriteAsync_Error ( )
20072008 {
20082009 // Arrange
2009- BlobServiceClient service = GetServiceClient_SharedKey ( ) ;
2010+ BlobServiceClient service = BlobsClientBuilder . GetServiceClient_SharedKey ( ) ;
20102011 BlobContainerClient container = InstrumentClient ( service . GetBlobContainerClient ( GetNewContainerName ( ) ) ) ;
20112012 AppendBlobClient blob = InstrumentClient ( container . GetAppendBlobClient ( GetNewBlobName ( ) ) ) ;
20122013
@@ -2248,9 +2249,9 @@ public void CanMockClientConstructors()
22482249 var mock = new Mock < AppendBlobClient > ( TestConfigDefault . ConnectionString , "name" , "name" , new BlobClientOptions ( ) ) . Object ;
22492250 mock = new Mock < AppendBlobClient > ( TestConfigDefault . ConnectionString , "name" , "name" ) . Object ;
22502251 mock = new Mock < AppendBlobClient > ( new Uri ( "https://test/test" ) , new BlobClientOptions ( ) ) . Object ;
2251- mock = new Mock < AppendBlobClient > ( new Uri ( "https://test/test" ) , GetNewSharedKeyCredentials ( ) , new BlobClientOptions ( ) ) . Object ;
2252+ mock = new Mock < AppendBlobClient > ( new Uri ( "https://test/test" ) , Tenants . GetNewSharedKeyCredentials ( ) , new BlobClientOptions ( ) ) . Object ;
22522253 mock = new Mock < AppendBlobClient > ( new Uri ( "https://test/test" ) , new AzureSasCredential ( "foo" ) , new BlobClientOptions ( ) ) . Object ;
2253- mock = new Mock < AppendBlobClient > ( new Uri ( "https://test/test" ) , GetOAuthCredential ( TestConfigHierarchicalNamespace ) , new BlobClientOptions ( ) ) . Object ;
2254+ mock = new Mock < AppendBlobClient > ( new Uri ( "https://test/test" ) , Tenants . GetOAuthCredential ( Tenants . TestConfigHierarchicalNamespace ) , new BlobClientOptions ( ) ) . Object ;
22542255 }
22552256
22562257 private AppendBlobRequestConditions BuildDestinationAccessConditions (
0 commit comments