public static async Task <HttpResponseMessage> GetAsync( this HttpClient client, string path, ITestOutputHelper output, IDto dto = null ) { var builder = BuildPath(client, path); if (dto != null) { builder.Query = dto.ToQueryString(); } output.WriteLine($"METHOD GET, url:'{builder.Uri.PathAndQuery}'"); return(await WriteApiErrorAsync(await client.GetAsync(builder.Uri.PathAndQuery), output)); }