public void OAuthBasedGetDataReturnsData() { var consumerKey = "gz6BEIMXHlMH8aCY9n1uJyAFFwiTlUJX"; var consumerSecret = "Twx5nyR4hP3s0GTm"; var oauth2api = new OAuth2Api(consumerKey, consumerSecret); var authUrl = oauth2api.GetOAuth2AuthorisationUrl(consumerKey); Console.WriteLine("Authentication url:"); Console.WriteLine(authUrl); Console.WriteLine("Enter redirect url:"); var responsekey = oauth2api.GetResponseKey(new Uri(Console.ReadLine())); var tokenResponse = oauth2api.GetAccessTokenResponse(responsekey); var AccessToken = tokenResponse.access_token; Console.WriteLine(string.Format("Access token: {0}", AccessToken)); var jobData = new GoToMeetingCrawlJobData(); jobData.AccessToken = AccessToken; _sut.GetData(jobData) .ShouldNotBeNull(); }