예제 #1
0
        public void Can_get_public_timeline_begin_end_style()
        {
            var service = new TwitterService();
            var result  = service.BeginListTweetsOnPublicTimeline();
            var tweets  = service.EndListTweetsOnPublicTimeline(result, TimeSpan.FromSeconds(5));

            Assert.IsNotNull(tweets);
            Assert.AreEqual(20, tweets.Count());

            foreach (var tweet in tweets)
            {
                Console.WriteLine("{0} said '{1}'", tweet.User.ScreenName, tweet.Text);
            }
        }
예제 #2
0
        public void Can_get_public_timeline_begin_end_style()
        {
            var service = new TwitterService();
            var result = service.BeginListTweetsOnPublicTimeline();
            var tweets = service.EndListTweetsOnPublicTimeline(result, TimeSpan.FromSeconds(5));
            
            Assert.IsNotNull(tweets);
            Assert.AreEqual(20, tweets.Count());

            foreach (var tweet in tweets)
            {
                Console.WriteLine("{0} said '{1}'", tweet.User.ScreenName, tweet.Text);
            }
        }