예제 #1
0
        public void TwitterFollower_GetData()
        {
            TwitterFollower t = new TwitterFollower(new TwitterFollowerDataSource());

            t.GetData(t.Context);
            TwitterDataComponent tdc = t.DroneDataComponent as TwitterDataComponent;
        }
예제 #2
0
        public async void MakeRequestForTwitterFollowers()
        {
            var credentials = TestSettings.GetToken <Twitter, OAuth1Credentials>();

            if (credentials.IsTokenExpired)
            {
                throw new Exception("Expired credentials!!!");
            }

            var request  = new TwitterFollower();
            var response = await new OAuthRequester(credentials)
                           .MakeOAuthRequestAsync <TwitterFollower, TwitterFollowerResponse>(request)
                           .ConfigureAwait(false);

            Assert.NotNull(response);
        }