Ejemplo n.º 1
0
        public void CreateAWriteListResponse()
        {
            var          moqContext  = new Mock <HttpContext>();
            var          httpContext = moqContext.Object;
            HealthReport result      = new HealthReport(null, TimeSpan.FromMinutes(5));

            WriteResponses.WriteListResponse(httpContext, result);
        }
Ejemplo n.º 2
0
 public async Task WriteListResponse()
 {
     var report = await reportTask;
     await WriteResponses.WriteListResponse(context, report);
 }
Ejemplo n.º 3
0
 public async Task WriteDictionaryResponse()
 {
     var report = await reportTask;
     await WriteResponses.WriteDictionaryResponse(context, report);
 }