コード例 #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);
        }
コード例 #2
0
 public async Task WriteListResponse()
 {
     var report = await reportTask;
     await WriteResponses.WriteListResponse(context, report);
 }
コード例 #3
0
 public async Task WriteDictionaryResponse()
 {
     var report = await reportTask;
     await WriteResponses.WriteDictionaryResponse(context, report);
 }