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