Exemplo n.º 1
0
        public void RequestAuthenticatorShouldAddAnHmacSha1AuthorizationHeader()
        {
            RequestAuthenticator authenticator = new HmacSha1RequestAuthenticator(credentials, accessToken);

            authenticator.SignRequest(request);

            AssertThatAuthorizationHeaderIsOAuth();
            AssertThatAuthorizationHeaderContains("HMAC-SHA1");
        }
        public void RequestAuthenticatorShouldAddAnHmacSha1AuthorizationHeader()
        {
            RequestAuthenticator authenticator = new HmacSha1RequestAuthenticator(credentials, accessToken);

            authenticator.SignRequest(request);

            AssertThatAuthorizationHeaderIsOAuth();
            AssertThatAuthorizationHeaderContains("HMAC-SHA1");
        }