예제 #1
0
        public void Can_get_tweet_async()
        {
            var service = new TwitterService();
            var result  = service.BeginGetTweet(10080880705929216);
            var tweet   = service.EndGetTweet(result);

            Assert.IsNotNull(tweet);
            Assert.IsNotNull(service.Response);
            Assert.AreEqual(HttpStatusCode.OK, service.Response.StatusCode);
        }
예제 #2
0
        public void Can_get_tweet_async()
        {
            var service = new TwitterService();
            var result = service.BeginGetTweet(10080880705929216);
            var tweet = service.EndGetTweet(result);

            Assert.IsNotNull(tweet);
            Assert.IsNotNull(service.Response);
            Assert.AreEqual(HttpStatusCode.OK, service.Response.StatusCode);
        }