@@ -534,7 +534,7 @@ public async Task GetAsync_ServerNeedsBasicAuthAndSetDefaultCredentials_StatusCo
534534 handler . Credentials = CredentialCache . DefaultCredentials ;
535535 using ( HttpClient client = CreateHttpClientForRemoteServer ( remoteServer , handler ) )
536536 {
537- Uri uri = remoteServer . BasicAuthUriForCreds ( userName : Username , password : Password ) ;
537+ Uri uri = remoteServer . BasicAuthUriForCreds ( Username , Password ) ;
538538 using ( HttpResponseMessage response = await client . GetAsync ( uri ) )
539539 {
540540 Assert . Equal ( HttpStatusCode . Unauthorized , response . StatusCode ) ;
@@ -550,7 +550,7 @@ public async Task GetAsync_ServerNeedsAuthAndSetCredential_StatusCodeOK(Configur
550550 handler . Credentials = _credential ;
551551 using ( HttpClient client = CreateHttpClientForRemoteServer ( remoteServer , handler ) )
552552 {
553- Uri uri = remoteServer . BasicAuthUriForCreds ( userName : Username , password : Password ) ;
553+ Uri uri = remoteServer . BasicAuthUriForCreds ( Username , Password ) ;
554554 using ( HttpResponseMessage response = await client . GetAsync ( uri ) )
555555 {
556556 Assert . Equal ( HttpStatusCode . OK , response . StatusCode ) ;
@@ -564,7 +564,7 @@ public async Task GetAsync_ServerNeedsAuthAndNoCredential_StatusCodeUnauthorized
564564 {
565565 using ( HttpClient client = CreateHttpClient ( UseVersion . ToString ( ) ) )
566566 {
567- Uri uri = Configuration . Http . RemoteHttp11Server . BasicAuthUriForCreds ( userName : Username , password : Password ) ;
567+ Uri uri = Configuration . Http . RemoteHttp11Server . BasicAuthUriForCreds ( Username , Password ) ;
568568 using ( HttpResponseMessage response = await client . GetAsync ( uri ) )
569569 {
570570 Assert . Equal ( HttpStatusCode . Unauthorized , response . StatusCode ) ;
0 commit comments