public void Must_Get_Build_Http_Token_Uri_With_Success()
        {
            _httpClient.TokenUrl = TokenUrl;

            var tokenUri = _httpClient.BuildTokenUri();

            tokenUri.ToString().Should().BeEquivalentTo(TokenUrl);
        }
Beispiel #2
0
 internal static HttpRequestMessage BuildRequestTokenHttpRequestMessage(this OAuth2HttpClient httpClient)
 {
     return(new HttpRequestMessage(HttpMethod.Post, httpClient.BuildTokenUri())
     {
         Content = httpClient.BuildFormUrlEncodedContent()
     });
 }