GetAccessToken() public method

public GetAccessToken ( GeeklistSharp.Model.OAuthRequestToken requestToken, string verifyer ) : GeeklistSharp.Model.OAuthAccessToken
requestToken GeeklistSharp.Model.OAuthRequestToken
verifyer string
return GeeklistSharp.Model.OAuthAccessToken
        public void GetAccessTokenTest()
        {
            string consumerKey = TestConstants.OAUTH_CONSUMER_KEY; // TODO: Initialize to an appropriate value
            string consumerSecret = TestConstants.OAUTH_CONSUMER_SECRET; // TODO: Initialize to an appropriate value
            GeeklistService target = new GeeklistService(consumerKey, consumerSecret);

            var requestToken = target.GetRequestToken();
            Assert.IsNotNull(requestToken);
            Assert.IsFalse(requestToken.Token == "?" || requestToken.TokenSecret == "?");

            var uri = target.GetAuthorizationUrl(requestToken.Token);
            Process.Start(uri.ToString());

            var verifyer = "5444526"; // <-- Debugger breakpoint and edit with the actual verifier

            OAuthAccessToken accessToken = target.GetAccessToken(requestToken, verifyer);
            Assert.IsNotNull(accessToken);
            Assert.IsFalse(accessToken.Token == "?" || accessToken.TokenSecret == "?");
        }
        private GeeklistService GetAndTestAuthenticatedService()
        {
            string consumerKey = TestConstants.OAUTH_CONSUMER_KEY; // TODO: Initialize to an appropriate value
            string consumerSecret = TestConstants.OAUTH_CONSUMER_SECRET; // TODO: Initialize to an appropriate value
            GeeklistService service = new GeeklistService(consumerKey, consumerSecret);

            var requestToken = service.GetRequestToken();
            Assert.IsNotNull(requestToken);
            Assert.IsFalse(requestToken.Token == "?" || requestToken.TokenSecret == "?");

            var uri = service.GetAuthorizationUrl(requestToken.Token);
            Process.Start(uri.ToString());

            var verifyer = "3935346"; // <-- Debugger breakpoint and edit with the actual verifier

            OAuthAccessToken accessToken = service.GetAccessToken(requestToken, verifyer);
            Assert.IsNotNull(accessToken);
            Assert.IsFalse(accessToken.Token == "?" || accessToken.TokenSecret == "?");

            service.AuthenticateWith(accessToken.Token, accessToken.TokenSecret);
            return service;
        }