public void CreateAWriteListResponse() { var moqContext = new Mock <HttpContext>(); var httpContext = moqContext.Object; HealthReport result = new HealthReport(null, TimeSpan.FromMinutes(5)); WriteResponses.WriteListResponse(httpContext, result); }
public async Task WriteListResponse() { var report = await reportTask; await WriteResponses.WriteListResponse(context, report); }