public ApplicationServiceTest()
 {
     IApiService apiService = new ApiService();
     IUrlBuilder urlBuilder = new UrlBuilder();
     ITwitterRepository repository = new TwitterRepository();
     this._service = new ApplicationService(repository, apiService, urlBuilder);
 }
Exemplo n.º 2
0
        public void Test_http_client_status_after_request()
        {
            var oauthProperties = new OAuthProperties();
            var client = new HttpClient(new OAuthMessageHandler(new HttpClientHandler(), oauthProperties));

            IApiService service = new ApiService(client);

            string url = "https://api.twitter.com/1/statuses/user_timeline.json?include_entities=true&screen_name=pay_by_phone";

            var result = service.GetTwitterTimelines(url);

            Assert.NotNull(result);
        }