16 references to StatusCode
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Logging\HttpLoggingTagNames.cs (1)
74
StatusCode
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (15)
Logging\AcceptanceTests.cs (10)
191
Assert.Single(state, x => x.Key == HttpLoggingTagNames.
StatusCode
&& x.Value == responseStatus);
251
Assert.Single(state, x => x.Key == HttpLoggingTagNames.
StatusCode
&& x.Value == responseStatus);
318
Assert.DoesNotContain(requestState, x => x.Key == HttpLoggingTagNames.
StatusCode
);
331
Assert.Single(responseState, x => x.Key == HttpLoggingTagNames.
StatusCode
&& x.Value == responseStatus);
379
Assert.Single(state, x => x.Key == HttpLoggingTagNames.
StatusCode
&& x.Value == responseStatus);
540
Assert.DoesNotContain(firstRecord, x => x.Key == HttpLoggingTagNames.
StatusCode
);
543
Assert.DoesNotContain(fourthRecord, x => x.Key == HttpLoggingTagNames.
StatusCode
);
549
Assert.Single(secondRecord!, x => x.Key == HttpLoggingTagNames.
StatusCode
&& x.Value == responseStatus);
550
Assert.Single(fithRecord!, x => x.Key == HttpLoggingTagNames.
StatusCode
&& x.Value == responseStatus);
585
Assert.Single(state, x => x.Key == HttpLoggingTagNames.
StatusCode
&& x.Value == expectedStatus);
Logging\AcceptanceTests.Mvc.cs (5)
83
Assert.Single(state, x => x.Key == HttpLoggingTagNames.
StatusCode
&& x.Value == responseStatus);
121
Assert.Single(state, x => x.Key == HttpLoggingTagNames.
StatusCode
&& x.Value == responseStatus);
173
Assert.Single(state, x => x.Key == HttpLoggingTagNames.
StatusCode
&& x.Value == responseStatus);
208
Assert.Single(state, x => x.Key == HttpLoggingTagNames.
StatusCode
&& x.Value == responseStatus);
251
Assert.Single(state, x => x.Key == HttpLoggingTagNames.
StatusCode
&& x.Value == responseStatus);