113 references to FormUrlEncodedContent
Diagnostics.EFCore.FunctionalTests (6)
DatabaseErrorPageMiddlewareTest.cs (1)
295var formData = new FormUrlEncodedContent(new List<KeyValuePair<string, string>>
MigrationsEndPointMiddlewareTest.cs (5)
120var formData = new FormUrlEncodedContent(new List<KeyValuePair<string, string>> 159var formData = new FormUrlEncodedContent(new List<KeyValuePair<string, string>>()); 188var formData = new FormUrlEncodedContent(new List<KeyValuePair<string, string>> 217var formData = new FormUrlEncodedContent(new List<KeyValuePair<string, string>> 256var formData = new FormUrlEncodedContent(new List<KeyValuePair<string, string>>
InMemory.FunctionalTests (2)
HttpsConnectionMiddlewareTests.cs (2)
61new FormUrlEncodedContent(new[] { 95new FormUrlEncodedContent(new[] {
Microsoft.AspNetCore.Authentication.OAuth (1)
OAuthHandler.cs (1)
216var requestContent = new FormUrlEncodedContent(tokenRequestParameters!);
Microsoft.AspNetCore.Authentication.OpenIdConnect (2)
OpenIdConnectHandler.cs (2)
597requestMessage.Content = new FormUrlEncodedContent(parRequest.Parameters); 992requestMessage.Content = new FormUrlEncodedContent(tokenEndpointRequest.Parameters);
Microsoft.AspNetCore.Authentication.Test (5)
OpenIdConnect\OpenIdConnectAuthenticateTests.cs (1)
59request.Content = new FormUrlEncodedContent(new Dictionary<string, string>());
TwitterTests.cs (2)
407res.Content = new FormUrlEncodedContent(content); 476res.Content = new FormUrlEncodedContent(content);
WsFederation\WsFederationTest.cs (1)
259return new FormUrlEncodedContent(kvps);
WsFederation\WsFederationTest_Handler.cs (1)
257return new FormUrlEncodedContent(kvps);
Microsoft.AspNetCore.Authentication.Twitter (1)
TwitterHandler.cs (1)
263request.Content = new FormUrlEncodedContent(formData!);
Microsoft.AspNetCore.Components.Server.Tests (4)
CircuitDisconnectMiddlewareTest.cs (4)
117await new FormUrlEncodedContent(new Dictionary<string, string> { ["circuitId"] = "1234" }).CopyToAsync(memory); 150await new FormUrlEncodedContent(new Dictionary<string, string> { ["circuitId"] = circuitId.Secret, }).CopyToAsync(memory); 187await new FormUrlEncodedContent(new Dictionary<string, string> { ["circuitId"] = circuitId.Secret, }).CopyToAsync(memory); 225await new FormUrlEncodedContent(new Dictionary<string, string> { ["circuitId"] = circuitId.Secret }).CopyToAsync(memory);
Microsoft.AspNetCore.Http.Extensions.Tests (5)
RequestDelegateFactoryTests.cs (1)
2059var urlEncondedForm = new FormUrlEncodedContent(new Dictionary<string, string> { ["message"] = "hello", ["name"] = "foo" });
RequestDelegateGenerator\RequestDelegateCreationTests.Forms.cs (1)
524var urlEncondedForm = new FormUrlEncodedContent(new Dictionary<string, string> { ["message"] = "hello", ["name"] = "foo" });
RequestDelegateGenerator\RuntimeCreationTests.ComplexFormBinding.cs (3)
24var content = new FormUrlEncodedContent(new Dictionary<string, string> { ["Id"] = "1", ["Name"] = "Write tests", ["IsComplete"] = "true" }); 92var content = new FormUrlEncodedContent(new Dictionary<string, string> { ["[foo]"] = "true", ["[bar]"] = "false", ["[baz]"] = "true" }); 201var content = new FormUrlEncodedContent(new Dictionary<string, string> { ["[0]"] = "1", ["[1]"] = "3", ["[2]"] = "5" });
Microsoft.AspNetCore.HttpOverrides.Tests (3)
HttpMethodOverrideMiddlewareTest.cs (3)
134req.Content = new FormUrlEncodedContent(new Dictionary<string, string>() 172req.Content = new FormUrlEncodedContent(new Dictionary<string, string>() 209req.Content = new FormUrlEncodedContent(new Dictionary<string, string>()
Microsoft.AspNetCore.Mvc.FunctionalTests (70)
AntiforgeryMiddlewareTest.cs (5)
49request.Content = new FormUrlEncodedContent(nameValueCollection); 90request.Content = new FormUrlEncodedContent(nameValueCollection); 133request.Content = new FormUrlEncodedContent(nameValueCollection); 165request.Content = new FormUrlEncodedContent(nameValueCollection); 197request.Content = new FormUrlEncodedContent(nameValueCollection);
AntiforgeryTests.cs (3)
76request.Content = new FormUrlEncodedContent(nameValueCollection); 126request.Content = new FormUrlEncodedContent(nameValueCollection); 155request.Content = new FormUrlEncodedContent(nameValueCollection);
BasicTests.cs (5)
404var response = await Client.PostAsync("/Home/Product", new FormUrlEncodedContent(product)); 536var response = await Client.PostAsync("BindProperties/Action", new FormUrlEncodedContent(formContent)); 559var response = await Client.PostAsync("BindProperties/Action", new FormUrlEncodedContent(formContent)); 581var response = await Client.PostAsync("BindProperties/Action", new FormUrlEncodedContent(formContent)); 601var response = await Client.PostAsync("BindPropertiesSupportsGet/Action", new FormUrlEncodedContent(formContent));
HtmlGenerationTest.cs (3)
333request.Content = new FormUrlEncodedContent(nameValueCollection); 386request.Content = new FormUrlEncodedContent(nameValueCollection); 787request.Content = new FormUrlEncodedContent(new Dictionary<string, string>
InputObjectValidationTests.cs (1)
189var content = new FormUrlEncodedContent(kvps);
InputValidationTests.cs (2)
36var content = new FormUrlEncodedContent(new Dictionary<string, string> 76var content = new FormUrlEncodedContent(new Dictionary<string, string>
NonNullableReferenceTypesTest.cs (2)
54request.Content = new FormUrlEncodedContent(new[] 96request.Content = new FormUrlEncodedContent(new[]
RazorBuildTest.cs (1)
174var updateContent = new FormUrlEncodedContent(new Dictionary<string, string>
RazorPageModelTest.cs (6)
41Content = new FormUrlEncodedContent(new KeyValuePair<string, string>[] 66Content = new FormUrlEncodedContent(new KeyValuePair<string, string>[] 91Content = new FormUrlEncodedContent(new KeyValuePair<string, string>[] 117Content = new FormUrlEncodedContent(new KeyValuePair<string, string>[] 142Content = new FormUrlEncodedContent(new KeyValuePair<string, string>[] 167Content = new FormUrlEncodedContent(new KeyValuePair<string, string>[]
RazorPagesTest.cs (11)
673Content = new FormUrlEncodedContent(new KeyValuePair<string, string>[] 702Content = new FormUrlEncodedContent(new KeyValuePair<string, string>[] 728Content = new FormUrlEncodedContent(new KeyValuePair<string, string>[] 759Content = new FormUrlEncodedContent(new KeyValuePair<string, string>[] 788Content = new FormUrlEncodedContent(new Dictionary<string, string> 813Content = new FormUrlEncodedContent(new Dictionary<string, string> 844Content = new FormUrlEncodedContent(new KeyValuePair<string, string>[] 869Content = new FormUrlEncodedContent(new KeyValuePair<string, string>[] 985Content = new FormUrlEncodedContent(new KeyValuePair<string, string>[] 1290Content = new FormUrlEncodedContent(new Dictionary<string, string> 1328Content = new FormUrlEncodedContent(new[]
RazorPagesWithBasePathTest.cs (3)
434Content = new FormUrlEncodedContent(new Dictionary<string, string> 463Content = new FormUrlEncodedContent(new Dictionary<string, string> 491Content = new FormUrlEncodedContent(new Dictionary<string, string>
RazorRuntimeCompilationHostingStartupTest.cs (1)
119var updateContent = new FormUrlEncodedContent(new Dictionary<string, string>
ReadFromDisconnectedClientTest.cs (1)
56request.Content = new FormUrlEncodedContent(new Dictionary<string, string>
RemoteAttributeValidationTest.cs (1)
96var content = new FormUrlEncodedContent(contentDictionary);
RequestFormLimitsTest.cs (6)
50new FormUrlEncodedContent(kvps)); 71new FormUrlEncodedContent(kvps)); 97new FormUrlEncodedContent(kvps)); 120new FormUrlEncodedContent(kvps)); 146new FormUrlEncodedContent(kvps)); 167new FormUrlEncodedContent(kvps));
RequestSizeLimitTest.cs (2)
48new FormUrlEncodedContent(kvps)); 70new FormUrlEncodedContent(kvps));
TagHelpersTest.cs (2)
238var postContent = new FormUrlEncodedContent(validPostValues); 266var postContent = new FormUrlEncodedContent(validPostValues);
TempDataInCookiesTest.cs (2)
121var content = new FormUrlEncodedContent(nameValueCollection); 174var content = new FormUrlEncodedContent(nameValueCollection);
TempDataInCookiesUsingCookieConsentTest.cs (2)
44var content = new FormUrlEncodedContent(nameValueCollection); 77var content = new FormUrlEncodedContent(nameValueCollection);
TempDataPropertyTest.cs (4)
42var content = new FormUrlEncodedContent(nameValueCollection); 70var content = new FormUrlEncodedContent(nameValueCollection); 99var content = new FormUrlEncodedContent(nameValueCollection); 136var content = new FormUrlEncodedContent(nameValueCollection);
TempDataTestBase.cs (7)
43var content = new FormUrlEncodedContent(nameValueCollection); 74var content = new FormUrlEncodedContent(nameValueCollection); 93var content = new FormUrlEncodedContent(nameValueCollection); 124var content = new FormUrlEncodedContent(nameValueCollection); 164var content = new FormUrlEncodedContent(nameValueCollection); 189var content = new FormUrlEncodedContent(nameValueCollection); 203var content = new FormUrlEncodedContent(nameValueCollection);
Microsoft.AspNetCore.Routing.FunctionalTests (12)
MinimalFormTests.cs (12)
62request.Content = new FormUrlEncodedContent(nameValueCollection); 122request.Content = new FormUrlEncodedContent(nameValueCollection); 167request.Content = new FormUrlEncodedContent(nameValueCollection); 206request.Content = new FormUrlEncodedContent(nameValueCollection); 283request.Content = new FormUrlEncodedContent(nameValueCollection); 330request.Content = new FormUrlEncodedContent(nameValueCollection); 426request.Content = new FormUrlEncodedContent(nameValueCollection); 483request.Content = new FormUrlEncodedContent(nameValueCollection); 545request.Content = new FormUrlEncodedContent(nameValueCollection); 597request.Content = new FormUrlEncodedContent(nameValueCollection); 649request.Content = new FormUrlEncodedContent(nameValueCollection); 695request.Content = new FormUrlEncodedContent(nameValueCollection);
OpenIdConnectSample (1)
Startup.cs (1)
260var content = new FormUrlEncodedContent(pairs);
SocialSample (1)
Startup.cs (1)
329var content = new FormUrlEncodedContent(pairs);