26 references to StringContent
Aspire.Cli.Tests (9)
Mcp\Docs\DocsFetcherTests.cs (9)
26
Content = new
StringContent
(expectedContent)
45
Content = new
StringContent
("# Content")
67
Content = new
StringContent
(content)
149
Content = new
StringContent
(freshContent)
218
Content = new
StringContent
("")
238
Content = new
StringContent
(whitespace)
321
Content = new
StringContent
(serverContent)
354
Content = new
StringContent
(serverContent)
376
Content = new
StringContent
("# Content")
Aspire.Dashboard.Tests (4)
Telemetry\DashboardTelemetrySenderTests.cs (1)
84
return Task.FromResult(new HttpResponseMessage(telemetryEnabledResponseStatusCode.Value) { Content = new
StringContent
(telemetryEnabledResponseBody ?? string.Empty) });
Telemetry\DashboardTelemetryServiceTests.cs (3)
110
Content = new
StringContent
(JsonSerializer.Serialize(new TelemetryEnabledResponse(IsEnabled: true)) ?? string.Empty)
125
Content = new
StringContent
(JsonSerializer.Serialize(new TelemetryEventCorrelation { Id = userTaskCorrelationId }))
135
Content = new
StringContent
(JsonSerializer.Serialize(new TelemetryEventCorrelation { Id = Guid.NewGuid() }))
Aspire.Hosting.PostgreSQL.Tests (1)
PostgresFunctionalTests.cs (1)
171
{ new
StringContent
(dbName), "bookmark_id" }
Binding.Http.IntegrationTests (1)
BasicHttpBindingTests.4.0.0.cs (1)
165
message.Content = new
StringContent
(requestMessageBody);
Microsoft.Arcade.Common (1)
ArcadeHttpMessageHandler.cs (1)
34
Content = new
StringContent
($"No response specified in RequestResponses for '({request.Method}) {request.RequestUri}")
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (5)
Logging\AcceptanceTests.cs (5)
216
using var content = new
StringContent
(Content);
380
Content = new
StringContent
(Content)
692
using var content = new
StringContent
(Content);
726
using var content = new
StringContent
(Content);
755
using var content = new
StringContent
("Client: hello!");
Microsoft.Extensions.AI.Evaluation.Safety (1)
ContentSafetyService.cs (1)
416
request.Content = new
StringContent
(payload ?? string.Empty);
Microsoft.Extensions.AI.Integration.Tests (1)
VerbatimHttpHandler.cs (1)
86
return new() { Content = new
StringContent
(_expectedOutput) };
Microsoft.Extensions.Http.Diagnostics.Tests (2)
Logging\HttpHeadersReaderTest.cs (2)
131
using var requestContent = new
StringContent
(string.Empty);
140
using var responseContent = new
StringContent
(string.Empty);
Microsoft.NET.Build.Containers (1)
Registry\DefaultManifestOperations.cs (1)
43
HttpContent manifestUploadContent = new
StringContent
(manifestJson);