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)); }
public void ItReturnsUrlForNewsLatestRequest() { var url = _urlGenerator.UrlForLimit <List <News> >(2); url.Should().Be("http://localhost.com/test-id/news/latest/2"); }