예제 #1
0
        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"));
        }
예제 #2
0
 public void RetrieveAcccountMetadataUsingPlainTextSignature()
 {
     RetrieveAccountMetadataUsing(RequestAuthenticatorFactory.GetPlainTextAuthenticator(credentials, accessToken));
 }