Пример #1
0
 public void WhenICreateOAuth2AuthorizationRequestHeaderAuthenticatorWithValue123(string oauthToken)
 {
     try
     {
         _fluentHttpRequest.AuthenticateUsing(new OAuth2AuthorizationRequestHeaderAuthenticator(oauthToken));
         _fluentHttpRequest.GetAuthenticator().Authenticate(_fluentHttpRequest);
     }
     catch (Exception ex)
     {
         _exception = ex;
     }
 }
Пример #2
0
 public void WhenAuthenticateUsingOAuth2AuthorizationRequestHeaderAuthenticatorWithAccessToken123(string oauthToken)
 {
     _fluentHttpRequest.AuthenticateUsing(new OAuth2AuthorizationRequestHeaderAuthenticator(oauthToken));
     _fluentHttpRequest.GetAuthenticator().Authenticate(_fluentHttpRequest);
 }