public void GetNoFeedsInvalidData() { TwitterApplicationOnlyOAuthTokens token = new TwitterApplicationOnlyOAuthTokens() { OAuthConsumerKey = "SHQOPnu3HknPnVQ1C1CzXHo88", OAuthConsumerSecret = "jFRdYXi7bAczFZZ5oB28feBhkTc9ZLOnwOEJBJWmY4Nx1HOV4e" }; var oathToken = TwitterApplicationOnlyAuthService.CreateInstance(token); var twitterService = new TwitterFeedsService(); var twits = twitterService.GetTimeline("inv"); Assert.AreEqual(twits.Result.Count(), 0); }
public async Task GetFeedsSuccessfully() { TwitterApplicationOnlyOAuthTokens token = new TwitterApplicationOnlyOAuthTokens() { OAuthConsumerKey = "SHQOPnu3HknPnVQ1C1CzXHo88", OAuthConsumerSecret = "jFRdYXi7bAczFZZ5oB28feBhkTc9ZLOnwOEJBJWmY4Nx1HOV4e" }; var oathToken = TwitterApplicationOnlyAuthService.CreateInstance(token); var twitterService = new TwitterFeedsService(); var twits = await twitterService.GetTimeline("Jon Skeet"); Assert.AreEqual(twits.Count(), 20); }