public async void WhenICallAGetMethodWithTheTokenEmbeddedInTheRequest() { var oauthBaseHost = _config.SelectToken("endpoint")["authEndpoint"].ToString(); var requestParamsObj = JObject.Parse(_config.SelectToken("authBodyParams").ToString()); IAuthenticationClass restApiAuthentication = new AuthenticationClass(oauthBaseHost, requestParamsObj); token = await restApiAuthentication.GetOauthAuthenticationAsync(); SetHttpMethod(Method.GET); SetHeaderToken(token); }