2 writes to State
Microsoft.AspNetCore.InternalTesting (1)
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
122 references to State
Microsoft.AspNetCore.Antiforgery.Test (7)
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (1)
Microsoft.AspNetCore.Hosting.Tests (1)
Microsoft.AspNetCore.Http.Extensions.Tests (15)
RequestDelegateGenerator\RequestDelegateCreationTests.Logging.cs (14)
52var log1Values = Assert.IsAssignableFrom<IReadOnlyList<KeyValuePair<string, object>>>(logs[0].State);
60var log2Values = Assert.IsAssignableFrom<IReadOnlyList<KeyValuePair<string, object>>>(logs[1].State);
68var log3Values = Assert.IsAssignableFrom<IReadOnlyList<KeyValuePair<string, object>>>(logs[2].State);
76var log4Values = Assert.IsAssignableFrom<IReadOnlyList<KeyValuePair<string, object>>>(logs[3].State);
115var log1Values = Assert.IsAssignableFrom<IReadOnlyList<KeyValuePair<string, object>>>(logs[0].State);
123var log2Values = Assert.IsAssignableFrom<IReadOnlyList<KeyValuePair<string, object>>>(logs[1].State);
235var log1Values = Assert.IsAssignableFrom<IReadOnlyList<KeyValuePair<string, object>>>(logs[0].State);
243var log2Values = Assert.IsAssignableFrom<IReadOnlyList<KeyValuePair<string, object>>>(logs[1].State);
315var log1Values = Assert.IsAssignableFrom<IReadOnlyList<KeyValuePair<string, object>>>(logs[0].State);
323var log2Values = Assert.IsAssignableFrom<IReadOnlyList<KeyValuePair<string, object>>>(logs[1].State);
405var logValues = Assert.IsAssignableFrom<IReadOnlyList<KeyValuePair<string, object>>>(logMessage.State);
454var logValues = Assert.IsAssignableFrom<IReadOnlyList<KeyValuePair<string, object>>>(logMessage.State);
534var logValues = Assert.IsAssignableFrom<IReadOnlyList<KeyValuePair<string, object>>>(logMessage.State);
614var logValues = Assert.IsAssignableFrom<IReadOnlyList<KeyValuePair<string, object>>>(logMessage.State);
Microsoft.AspNetCore.HttpsPolicy.Tests (14)
Microsoft.AspNetCore.InternalTesting (1)
Microsoft.AspNetCore.InternalTesting.Tests (4)
Microsoft.AspNetCore.Localization.Tests (2)
Microsoft.AspNetCore.Mvc.Core.Test (34)
ModelBinding\Binders\BodyModelBinderTests.cs (9)
613Assert.Equal($"Attempting to bind model of type '{typeof(Person)}' using the name 'someName' in request data ...", writeList[0].State.ToString());
614Assert.Equal($"Rejected input formatter '{typeof(TestInputFormatter)}' for content type 'application/json'.", writeList[1].State.ToString());
615Assert.Equal($"Selected input formatter '{typeof(TestInputFormatter)}' for content type 'application/json'.", writeList[2].State.ToString());
644$"Attempting to bind model of type '{typeof(Person)}' using the name 'someName' in request data ...", write.State.ToString()),
646$"Rejected input formatter '{typeof(TestInputFormatter)}' for content type 'multipart/form-data'.", write.State.ToString()),
648$"Rejected input formatter '{typeof(TestInputFormatter)}' for content type 'multipart/form-data'.", write.State.ToString()),
650"No input formatter was found to support the content type 'multipart/form-data' for use with the [FromBody] attribute.", write.State.ToString()),
652$"To use model binding, remove the [FromBody] attribute from the property or parameter named '{bindingContext.ModelName}' with model type '{bindingContext.ModelType}'.", write.State.ToString()),
654$"Done attempting to bind model of type '{typeof(Person)}' using the name 'someName'.", write.State.ToString()));
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (2)
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (2)
Microsoft.AspNetCore.Mvc.Razor.Test (2)
Microsoft.AspNetCore.Mvc.RazorPages.Test (7)
Microsoft.AspNetCore.RateLimiting.Tests (1)
Microsoft.AspNetCore.RequestDecompression.Tests (2)
Microsoft.AspNetCore.ResponseCompression.Tests (1)
Microsoft.AspNetCore.Routing.Tests (3)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
Microsoft.AspNetCore.Session.Tests (18)
SessionTests.cs (18)
369Assert.Contains("started", sessionLogMessages[0].State.ToString());
371Assert.Contains("stored", sessionLogMessages[1].State.ToString());
435Assert.Contains("started", sessionLogMessages[0].State.ToString());
436Assert.Contains("stored", sessionLogMessages[1].State.ToString());
437Assert.Contains("expired", sessionLogMessages[2].State.ToString());
683Assert.Contains("Session cache read exception", message.State.ToString());
732Assert.Contains("Session cache read exception", message.State.ToString());
780Assert.Contains("Loading the session timed out.", message.State.ToString());
881Assert.Contains("Session started", sessionLogMessage.State.ToString());
886Assert.Contains("Error closing the session.", sessionMiddlewareLogMessage.State.ToString());
944Assert.Contains("Session started", sessionLogMessages[0].State.ToString());
947Assert.Contains("Committing the session timed out.", sessionLogMessages[1].State.ToString());
952Assert.Contains("Committing the session was canceled.", sessionMiddlewareLogs[0].State.ToString());
1011Assert.Contains("Session started", sessionLogMessages[0].State.ToString());
1014Assert.Contains("Session stored", sessionLogMessages[1].State.ToString());
1075Assert.Contains("Session started", sessionLogMessages[0].State.ToString());
1078Assert.Contains("Session stored", sessionLogMessages[1].State.ToString());
1126Assert.Contains("Error closing the session.", message.State.ToString());
Microsoft.AspNetCore.SignalR.Tests.Utils (3)
Microsoft.Extensions.Localization.Tests (1)