111 references to VerifyResponseBodyAsync
Microsoft.AspNetCore.Http.Extensions.Tests (111)
RequestDelegateGenerator\CompileTimeCreationTests.cs (9)
34
await
VerifyResponseBodyAsync
(httpContext, "");
149
await
VerifyResponseBodyAsync
(httpContext, $"Hello {i}!");
185
await
VerifyResponseBodyAsync
(httpContext, "Hello world!");
361
await
VerifyResponseBodyAsync
(httpContext, "Hello world!");
413
await
VerifyResponseBodyAsync
(httpContext, $"Hello {endpoint.DisplayName}!");
515
await
VerifyResponseBodyAsync
(httpContext1, "Your id: cameraId and index name: indexName");
518
await
VerifyResponseBodyAsync
(httpContext2, "Your id: cameraId and chunk name: chunkName");
595
await
VerifyResponseBodyAsync
(httpContext, expectedBody: "{}");
614
await
VerifyResponseBodyAsync
(httpContext, expectedBody: "null");
RequestDelegateGenerator\CompileTimeCreationTests.Routes.cs (3)
27
await
VerifyResponseBodyAsync
(httpContext, "Hello world!");
50
await
VerifyResponseBodyAsync
(httpContext, "Hello world!");
79
await
VerifyResponseBodyAsync
(httpContext, $"Hello world!");
RequestDelegateGenerator\RequestDelegateCreationTests.Arrays.cs (29)
39
await
VerifyResponseBodyAsync
(httpContext, "2");
60
await
VerifyResponseBodyAsync
(httpContext, "2");
81
await
VerifyResponseBodyAsync
(httpContext, "2");
102
await
VerifyResponseBodyAsync
(httpContext, "2");
200
await
VerifyResponseBodyAsync
(httpContext, "2");
221
await
VerifyResponseBodyAsync
(httpContext, "2");
242
await
VerifyResponseBodyAsync
(httpContext, "2");
262
await
VerifyResponseBodyAsync
(httpContext, "0");
283
await
VerifyResponseBodyAsync
(httpContext, "2");
304
await
VerifyResponseBodyAsync
(httpContext, "2");
325
await
VerifyResponseBodyAsync
(httpContext, "2");
347
await
VerifyResponseBodyAsync
(httpContext, """["a","b","c"]""");
368
await
VerifyResponseBodyAsync
(httpContext, "[]");
390
await
VerifyResponseBodyAsync
(httpContext, """["a","b","c"]""");
411
await
VerifyResponseBodyAsync
(httpContext, "[]");
433
await
VerifyResponseBodyAsync
(httpContext, "[0,1,2]");
454
await
VerifyResponseBodyAsync
(httpContext, "[]");
476
await
VerifyResponseBodyAsync
(httpContext, "[0,1,2]");
497
await
VerifyResponseBodyAsync
(httpContext, "[]");
519
await
VerifyResponseBodyAsync
(httpContext, "[0,1,2]");
540
await
VerifyResponseBodyAsync
(httpContext, "[]");
562
await
VerifyResponseBodyAsync
(httpContext, "[0,1,2]");
583
await
VerifyResponseBodyAsync
(httpContext, "[]");
604
await
VerifyResponseBodyAsync
(httpContext, "", expectedStatusCode: 400);
631
await
VerifyResponseBodyAsync
(httpContext, "ValueFromBody");
658
await
VerifyResponseBodyAsync
(httpContext, "ValueFromBody");
685
await
VerifyResponseBodyAsync
(httpContext, "ValueFromQueryString");
712
await
VerifyResponseBodyAsync
(httpContext, "ValueFromQueryString");
739
await
VerifyResponseBodyAsync
(httpContext, "ValueFromBody");
RequestDelegateGenerator\RequestDelegateCreationTests.BindAsync.cs (2)
181
await
VerifyResponseBodyAsync
(httpContext, $"Hello world! {i}");
328
await
VerifyResponseBodyAsync
(httpContext, $"Hello /{index}!");
RequestDelegateGenerator\RequestDelegateCreationTests.cs (14)
44
await
VerifyResponseBodyAsync
(httpContext, "Hello world!");
74
await
VerifyResponseBodyAsync
(httpContext, "Hello world!");
97
await
VerifyResponseBodyAsync
(httpContext, "Hello world!");
160
await
VerifyResponseBodyAsync
(httpContext, "Hello world!");
164
await
VerifyResponseBodyAsync
(httpContext, "Hola mundo!");
168
await
VerifyResponseBodyAsync
(httpContext, "你好世界!");
217
await
VerifyResponseBodyAsync
(httpContext, expectedBody, expectedStatusCode);
279
await
VerifyResponseBodyAsync
(httpContext, hasService ? "Produced from service!" : string.Empty);
321
await
VerifyResponseBodyAsync
(httpContext, expectedBody);
327
await
VerifyResponseBodyAsync
(httpContext, expectedBody);
333
await
VerifyResponseBodyAsync
(httpContext, $"{expectedBody}, {expectedBody}");
397
await
VerifyResponseBodyAsync
(httpContext, expectedBody);
415
await
VerifyResponseBodyAsync
(httpContext, testString);
626
await
VerifyResponseBodyAsync
(httpContext, "To be or not to be…");
RequestDelegateGenerator\RequestDelegateCreationTests.Filters.cs (12)
39
await
VerifyResponseBodyAsync
(httpContext, string.Empty, StatusCodes.Status400BadRequest);
73
await
VerifyResponseBodyAsync
(httpContext, "Hello, TestName!");
151
await
VerifyResponseBodyAsync
(httpContext, "Hello, TestName! You are 27 years old.");
192
await
VerifyResponseBodyAsync
(httpContext, "Is not an int.");
244
await
VerifyResponseBodyAsync
(httpContext, "I see you expect a form.");
273
await
VerifyResponseBodyAsync
(httpContext, "Write tests is not done.");
308
await
VerifyResponseBodyAsync
(httpContext, "HELLO, TESTNAME!");
349
await
VerifyResponseBodyAsync
(httpContext, "HELLO, TESTNAMEPREFIX!");
406
await
VerifyResponseBodyAsync
(httpContext, "foo");
463
await
VerifyResponseBodyAsync
(httpContext, "foo");
529
await
VerifyResponseBodyAsync
(httpContext, string.Empty);
553
await
VerifyResponseBodyAsync
(httpContext, "Filtered: Microsoft.AspNetCore.Http.HttpResults.EmptyHttpResult");
RequestDelegateGenerator\RequestDelegateCreationTests.JsonBody.cs (5)
94
await
VerifyResponseBodyAsync
(httpContext, expectedBody, expectedStatusCode);
110
await
VerifyResponseBodyAsync
(httpContext, string.Empty, expectedStatusCode: 400);
138
await
VerifyResponseBodyAsync
(httpContext, expectedBody);
148
await
VerifyResponseBodyAsync
(httpContext, expectedBody);
153
await
VerifyResponseBodyAsync
(httpContext, string.Empty);
RequestDelegateGenerator\RequestDelegateCreationTests.JsonBodyOrService.cs (4)
61
await
VerifyResponseBodyAsync
(httpContext, expectedBody, expectedStatusCode);
86
await
VerifyResponseBodyAsync
(httpContext, expectedBody);
138
await
VerifyResponseBodyAsync
(httpContext, expectedBody);
225
await
VerifyResponseBodyAsync
(httpContext, "Produced from service!");
RequestDelegateGenerator\RequestDelegateCreationTests.KeyServices.cs (1)
252
await
VerifyResponseBodyAsync
(httpContext, "To be or not to be…");
RequestDelegateGenerator\RequestDelegateCreationTests.QueryParameters.cs (4)
103
await
VerifyResponseBodyAsync
(httpContext, "No value, but not null!");
124
await
VerifyResponseBodyAsync
(httpContext, "Hello world!");
139
await
VerifyResponseBodyAsync
(httpContext, "10");
181
await
VerifyResponseBodyAsync
(httpContext, "test", 200);
RequestDelegateGenerator\RequestDelegateCreationTests.Responses.cs (16)
38
await
VerifyResponseBodyAsync
(httpContext, expectedBody);
63
await
VerifyResponseBodyAsync
(httpContext, expectedBody);
85
await
VerifyResponseBodyAsync
(httpContext, expectedBody);
119
await
VerifyResponseBodyAsync
(httpContext, expectedBody);
143
await
VerifyResponseBodyAsync
(httpContext, expectedBody);
171
await
VerifyResponseBodyAsync
(httpContext, expectedBody);
196
await
VerifyResponseBodyAsync
(httpContext, expectedBody);
224
await
VerifyResponseBodyAsync
(httpContext, expectedBody);
253
await
VerifyResponseBodyAsync
(httpContext, string.Empty);
257
await
VerifyResponseBodyAsync
(httpContext, string.Empty);
361
await
VerifyResponseBodyAsync
(httpContext, expectedBody);
410
await
VerifyResponseBodyAsync
(httpContext, "Already gone!", StatusCodes.Status410Gone);
764
await
VerifyResponseBodyAsync
(httpContext, "String Test");
836
await
VerifyResponseBodyAsync
(httpContext, "true");
892
await
VerifyResponseBodyAsync
(httpContext, "42");
976
await
VerifyResponseBodyAsync
(httpContext, "null");
RequestDelegateGenerator\RequestDelegateCreationTests.RouteParameter.cs (5)
57
await
VerifyResponseBodyAsync
(httpContext, expectedBody, expectedStatusCode);
122
await
VerifyResponseBodyAsync
(httpContext, expectedBody, expectedStatusCode);
139
await
VerifyResponseBodyAsync
(httpContext, "fromQuery");
156
await
VerifyResponseBodyAsync
(httpContext, "fromRoute");
189
await
VerifyResponseBodyAsync
(httpContext, "test", 200);
RequestDelegateGenerator\RequestDelegateCreationTests.TryParse.cs (5)
119
await
VerifyResponseBodyAsync
(httpContext, expectedBody);
151
await
VerifyResponseBodyAsync
(httpContext, expectedBody);
176
await
VerifyResponseBodyAsync
(httpContext, result);
199
await
VerifyResponseBodyAsync
(httpContext, "Knit kitten mittens.");
240
await
VerifyResponseBodyAsync
(httpContext, "Done");
RequestDelegateGenerator\RuntimeCreationTests.cs (2)
41
await
VerifyResponseBodyAsync
(httpContext, expectedBody);
55
await
VerifyResponseBodyAsync
(httpContext, expectedBody: "");