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.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.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");