public async Task <List <Photo> > GetRandomPhotosAsync(uint count) { var uri = new GetRandomPhotosRequest(count).Uri; HttpResponseMessage response = await netClient.GetAsync(uri).ConfigureAwait(false); return(await ParseResponseAsync <List <Photo> >(response).ConfigureAwait(false)); }
public void GetRandomPhotosRequest_CountArgumentOnly_ProducesAnExpectedURI() { uint count = 10; var request = new GetRandomPhotosRequest(count); Assert.Matches($"&count={count}", request.Uri.AbsoluteUri); }