151 references to StringContent
Aspire.Dashboard.Tests (4)
Aspire.Hosting.PostgreSQL.Tests (1)
Binding.Http.IntegrationTests (1)
HttpStress (3)
IIS.FunctionalTests (21)
IISExpress.FunctionalTests (21)
Interop.FunctionalTests (2)
Microsoft.Arcade.Common (1)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (5)
Microsoft.AspNetCore.HeaderPropagation.Tests (3)
Microsoft.AspNetCore.Http.Extensions.Tests (17)
RequestDelegateGenerator\RuntimeCreationTests.ComplexFormBinding.cs (12)
57content.Add(new StringContent("1"), "Id");
58content.Add(new StringContent("Write tests"), "Name");
59content.Add(new StringContent("true"), "IsComplete");
126content.Add(new StringContent("true"), "[foo]");
127content.Add(new StringContent("false"), "[bar]");
128content.Add(new StringContent("true"), "[baz]");
163content.Add(new StringContent("not-a-bool"), "[foo]");
164content.Add(new StringContent("1"), "[bar]");
165content.Add(new StringContent("2"), "[baz]");
235content.Add(new StringContent("1"), "[0]");
236content.Add(new StringContent("3"), "[1]");
237content.Add(new StringContent("5"), "[2]");
Microsoft.AspNetCore.InternalTesting.Tests (2)
Microsoft.AspNetCore.Mvc.FunctionalTests (28)
FormFileUploadTest.cs (10)
35content.Add(new StringContent("John"), "Name");
36content.Add(new StringContent("23"), "Age");
37content.Add(new StringContent("John's biography content"), "Biography", "Bio.txt");
59content.Add(new StringContent("Phone"), "Name");
60content.Add(new StringContent("camera"), "Specs[0].Key");
61content.Add(new StringContent("camera spec1 file contents"), "Specs[0].Value", "camera_spec1.txt");
62content.Add(new StringContent("camera spec2 file contents"), "Specs[0].Value", "camera_spec2.txt");
63content.Add(new StringContent("battery"), "Specs[1].Key");
64content.Add(new StringContent("battery spec1 file contents"), "Specs[1].Value", "battery_spec1.txt");
65content.Add(new StringContent("battery spec2 file contents"), "Specs[1].Value", "battery_spec2.txt");
Microsoft.AspNetCore.OutputCaching.Tests (2)
Microsoft.AspNetCore.ResponseCaching.Tests (2)
Microsoft.AspNetCore.Routing.FunctionalTests (3)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (8)
Microsoft.AspNetCore.SignalR.Client.Tests (4)
Microsoft.AspNetCore.SpaServices.Extensions.Tests (1)
Microsoft.AspNetCore.TestHost.Tests (4)
Microsoft.Build.Tasks.UnitTests (6)
Microsoft.DotNet.Helix.Sdk.Tests (8)
Microsoft.Extensions.AI.Evaluation.Safety (1)
Microsoft.Extensions.Http.Diagnostics.Tests (2)
Microsoft.Extensions.Http.Polly.Tests (1)