Exemple #1
0
        public void RequestAuthenticatorShouldAddAPlainTextAuthorizationHeader()
        {
            RequestAuthenticator authenticator = new PlainTextRequestAuthenticator(credentials, accessToken);

            authenticator.SignRequest(request);

            AssertThatAuthorizationHeaderIsOAuth();
            AssertThatAuthorizationHeaderContains("PLAINTEXT");
        }
        public void RequestAuthenticatorShouldAddAPlainTextAuthorizationHeader()
        {
            RequestAuthenticator authenticator = new PlainTextRequestAuthenticator(credentials, accessToken);

            authenticator.SignRequest(request);

            AssertThatAuthorizationHeaderIsOAuth();
            AssertThatAuthorizationHeaderContains("PLAINTEXT");
        }