140 references to AssertStatusCodeAsync
Microsoft.AspNetCore.Mvc.FunctionalTests (140)
ApiBehaviorTest.cs (16)
61
await response.
AssertStatusCodeAsync
(HttpStatusCode.BadRequest);
112
await response.
AssertStatusCodeAsync
(HttpStatusCode.UnsupportedMediaType);
128
await response.
AssertStatusCodeAsync
(HttpStatusCode.UnsupportedMediaType);
156
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
177
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
193
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
210
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
230
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
251
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
269
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
284
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
298
await response.
AssertStatusCodeAsync
(HttpStatusCode.NotFound);
327
await response.
AssertStatusCodeAsync
(HttpStatusCode.NotFound);
345
await response.
AssertStatusCodeAsync
(HttpStatusCode.NotFound);
358
await response.
AssertStatusCodeAsync
(HttpStatusCode.BadRequest);
450
await response.
AssertStatusCodeAsync
(HttpStatusCode.BadRequest);
AsyncActionsTests.cs (3)
302
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
312
await response.
AssertStatusCodeAsync
(HttpStatusCode.NotFound);
322
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
AsyncEnumerableTestBase.cs (3)
45
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
63
await response.
AssertStatusCodeAsync
(HttpStatusCode.InternalServerError);
82
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
AuthMiddlewareAndFilterTestBase.cs (10)
42
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
60
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
85
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
95
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
105
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
124
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
262
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
267
await response.
AssertStatusCodeAsync
(HttpStatusCode.Redirect);
273
await response.
AssertStatusCodeAsync
(HttpStatusCode.Redirect);
281
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
AuthMiddlewareUsingRequireAuthTest.cs (4)
51
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
70
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
75
await response.
AssertStatusCodeAsync
(HttpStatusCode.Redirect);
83
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
BasicTests.cs (7)
539
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
562
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
584
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
604
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
616
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
628
await response.
AssertStatusCodeAsync
(HttpStatusCode.BadRequest);
654
await response.
AssertStatusCodeAsync
(HttpStatusCode.BadRequest);
ComponentRenderingFunctionalTests.cs (5)
42
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
58
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
75
await response.
AssertStatusCodeAsync
(HttpStatusCode.Redirect);
89
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
167
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
CorsTestsBase.cs (1)
423
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
HtmlGenerationTest.cs (2)
138
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
796
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
HttpActionResultTests.cs (2)
41
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
55
await response.
AssertStatusCodeAsync
(HttpStatusCode.NoContent);
Infrastructure\HttpClientExtensions.cs (1)
17
await
AssertStatusCodeAsync
(response, HttpStatusCode.OK);
InputFormatterTests.cs (15)
94
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
106
await response.
AssertStatusCodeAsync
(HttpStatusCode.BadRequest);
126
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
138
await response.
AssertStatusCodeAsync
(HttpStatusCode.BadRequest);
158
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
170
await response.
AssertStatusCodeAsync
(HttpStatusCode.BadRequest);
189
await response.
AssertStatusCodeAsync
(HttpStatusCode.BadRequest);
207
await response.
AssertStatusCodeAsync
(HttpStatusCode.BadRequest);
234
await response.
AssertStatusCodeAsync
(HttpStatusCode.UnsupportedMediaType);
244
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
254
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
264
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
279
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
294
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
309
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
InputObjectValidationTests.cs (4)
277
await response.
AssertStatusCodeAsync
(HttpStatusCode.InternalServerError);
298
await response.
AssertStatusCodeAsync
(HttpStatusCode.BadRequest);
327
await response.
AssertStatusCodeAsync
(HttpStatusCode.BadRequest);
359
await response.
AssertStatusCodeAsync
(HttpStatusCode.BadRequest);
JsonInputFormatterTestBase.cs (2)
160
await response.
AssertStatusCodeAsync
(HttpStatusCode.BadRequest);
191
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
JsonOutputFormatterTestBase.cs (10)
84
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
95
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
106
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
117
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
131
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
145
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
159
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
174
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
187
await response.
AssertStatusCodeAsync
(HttpStatusCode.NotFound);
206
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
MvcSandboxTest.cs (2)
37
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
47
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
NewtonsoftJsonOutputFormatterTest.cs (2)
34
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
46
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
NonNullableReferenceTypesTest.cs (5)
41
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
65
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
83
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
109
await response.
AssertStatusCodeAsync
(HttpStatusCode.Redirect);
119
_ = await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
RazorBuildTest.cs (1)
72
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
RazorPagesTest.cs (3)
800
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
825
await response.
AssertStatusCodeAsync
(HttpStatusCode.BadRequest);
1316
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
RazorPagesWithBasePathTest.cs (3)
688
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
716
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
748
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
RazorPagesWithEndpointRoutingTest.cs (4)
37
await response.
AssertStatusCodeAsync
(HttpStatusCode.Redirect);
48
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
61
await response.
AssertStatusCodeAsync
(HttpStatusCode.Redirect);
72
await response.
AssertStatusCodeAsync
(HttpStatusCode.Redirect);
ReadFromDisconnectedClientTest.cs (2)
48
await response.
AssertStatusCodeAsync
(HttpStatusCode.BadRequest);
65
await response.
AssertStatusCodeAsync
(HttpStatusCode.BadRequest);
RequestFormLimitsTest.cs (2)
53
await response.
AssertStatusCodeAsync
(HttpStatusCode.BadRequest);
149
await response.
AssertStatusCodeAsync
(HttpStatusCode.BadRequest);
RoutingDynamicTest.cs (1)
171
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
RoutingTestsBase.cs (2)
1579
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
1591
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
SimpleWithWebApplicationBuilderTests.cs (11)
62
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
77
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
92
await response.
AssertStatusCodeAsync
(HttpStatusCode.Accepted);
107
await response.
AssertStatusCodeAsync
(HttpStatusCode.NotFound);
119
await response.
AssertStatusCodeAsync
(HttpStatusCode.MovedPermanently);
132
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
225
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
240
await response.
AssertStatusCodeAsync
(HttpStatusCode.UnsupportedMediaType);
255
await response.
AssertStatusCodeAsync
(HttpStatusCode.Accepted);
276
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
292
await response.
AssertStatusCodeAsync
(HttpStatusCode.BadRequest);
SystemTextJsonOutputFormatterTest.cs (4)
23
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
42
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
65
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
80
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
TempDataPropertyTest.cs (2)
48
await redirectResponse.
AssertStatusCodeAsync
(HttpStatusCode.Redirect);
54
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
ViewEngineTests.cs (3)
81
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
258
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
429
await response.
AssertStatusCodeAsync
(HttpStatusCode.OK);
XmlDataContractSerializerFormattersWrappingTest.cs (4)
235
await response.
AssertStatusCodeAsync
(HttpStatusCode.NotFound);
262
await response.
AssertStatusCodeAsync
(HttpStatusCode.NotFound);
277
await response.
AssertStatusCodeAsync
(HttpStatusCode.BadRequest);
310
await response.
AssertStatusCodeAsync
(HttpStatusCode.BadRequest);
XmlSerializerFormattersWrappingTest.cs (4)
218
await response.
AssertStatusCodeAsync
(HttpStatusCode.NotFound);
245
await response.
AssertStatusCodeAsync
(HttpStatusCode.NotFound);
260
await response.
AssertStatusCodeAsync
(HttpStatusCode.BadRequest);
292
await response.
AssertStatusCodeAsync
(HttpStatusCode.BadRequest);