public void PlainTextAuthenticatedRequestParametersShouldBeEchoed() { RequestAuthenticator authenticator = RequestAuthenticatorFactory.GetPlainTextAuthenticator(credentials, accessToken); WebRequest req = WebRequest.Create("http://term.ie/oauth/example/echo_api.php?method=foo&bar=baz"); authenticator.SignRequest(req); string response = Helpers.ReadResponse(req); Assert.That(response, Contains.Substring("method=foo&bar=baz")); }
public void RetrieveAcccountMetadataUsingPlainTextSignature() { RetrieveAccountMetadataUsing(RequestAuthenticatorFactory.GetPlainTextAuthenticator(credentials, accessToken)); }