File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/ConnectivityTests Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments