Exemplo n.º 1
0
        public void RequestAuthenticatorShouldAddAnRsaSha1AuthorizationHeader()
        {
            RequestAuthenticator authenticator = new RsaSha1RequestAuthenticator(credentials, accessToken, key);

            authenticator.SignRequest(request);

            AssertThatAuthorizationHeaderIsOAuth();
            AssertThatAuthorizationHeaderContains("RSA-SHA1");
        }
        public void RequestAuthenticatorShouldAddAnRsaSha1AuthorizationHeader()
        {
            RequestAuthenticator authenticator = new RsaSha1RequestAuthenticator(credentials, accessToken, key);

            authenticator.SignRequest(request);

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