コード例 #1
0
        public async Task <HttpResponse> GetLatest <T>(int limit)
        {
            var url          = _urlGenerator.UrlForLimit <T>(limit);
            var httpResponse = await _httpClient.Get(url, _authenticationHeaders);

            return(HttpResponse.Build <T>(httpResponse));
        }
コード例 #2
0
        public void ItReturnsUrlForNewsLatestRequest()
        {
            var url = _urlGenerator.UrlForLimit <List <News> >(2);

            url.Should().Be("http://localhost.com/test-id/news/latest/2");
        }