Skip to content

Commit 48e5eb7

Browse files
committed
- Fixed a few missed Manager provider calls.
1 parent a2988d3 commit 48e5eb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/ConnectivityTests/AADConnectionTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ public static void TestADPasswordAuthentication()
262262
public static void TestCustomProviderAuthentication()
263263
{
264264
#pragma warning disable 0618 // Type or member is obsolete
265-
SqlAuthenticationProviderManager.SetProvider(SqlAuthenticationMethod.ActiveDirectoryPassword, new CustomSqlAuthenticationProvider(DataTestUtility.ApplicationClientId));
265+
SqlAuthenticationProvider.SetProvider(SqlAuthenticationMethod.ActiveDirectoryPassword, new CustomSqlAuthenticationProvider(DataTestUtility.ApplicationClientId));
266266
#pragma warning restore 0618 // Type or member is obsolete
267267
// Connect to Azure DB with password and retrieve user name using custom authentication provider
268268
using (SqlConnection conn = new SqlConnection(DataTestUtility.AADPasswordConnectionString))
@@ -282,7 +282,7 @@ public static void TestCustomProviderAuthentication()
282282
}
283283
// Reset to driver internal provider.
284284
#pragma warning disable 0618 // Type or member is obsolete
285-
SqlAuthenticationProviderManager.SetProvider(SqlAuthenticationMethod.ActiveDirectoryPassword, new ActiveDirectoryAuthenticationProvider(DataTestUtility.ApplicationClientId));
285+
SqlAuthenticationProvider.SetProvider(SqlAuthenticationMethod.ActiveDirectoryPassword, new ActiveDirectoryAuthenticationProvider(DataTestUtility.ApplicationClientId));
286286
#pragma warning restore 0618 // Type or member is obsolete
287287
}
288288

0 commit comments

Comments
 (0)