53 references to WriteAllTextAsync
Aspire.Cli.Tests (18)
DotNet\DotNetCliRunnerTests.cs (6)
21await File.WriteAllTextAsync(projectFile.FullName, "Not a real project file."); 64await File.WriteAllTextAsync(projectFile.FullName, "Not a real project file."); 96await File.WriteAllTextAsync(projectFile.FullName, "Not a real project file."); 138await File.WriteAllTextAsync(projectFile.FullName, "Not a real project file."); 179await File.WriteAllTextAsync(projectFile.FullName, "Not a real project file."); 223await File.WriteAllTextAsync(projectFile.FullName, "Not a real project file.");
Projects\ProjectLocatorTests.cs (12)
51await File.WriteAllTextAsync(targetAppHostProjectFile.FullName, "Not a real apphost"); 55await File.WriteAllTextAsync(targetAppHostProjectFile.FullName, "Not a real apphost"); 89await File.WriteAllTextAsync(targetAppHostProjectFile.FullName, "Not a real apphost"); 93await File.WriteAllTextAsync(targetAppHostProjectFile.FullName, "Not a real apphost"); 124await File.WriteAllTextAsync(realAppHostProjectFile.FullName, "Not a real apphost project"); 167await File.WriteAllTextAsync(projectFile1.FullName, "Not a real project file."); 170await File.WriteAllTextAsync(projectFile2.FullName, "Not a real project file."); 189await File.WriteAllTextAsync(appHostProject.FullName, "Not a real apphost project."); 192await File.WriteAllTextAsync(webProject.FullName, "Not a real web project."); 239await File.WriteAllTextAsync(projectFile.FullName, "Not a real project file."); 257await File.WriteAllTextAsync(projectFile.FullName, "Not a real project file."); 278await File.WriteAllTextAsync(appHostProjectFile.FullName, "Not a real project file.");
Aspire.Dashboard.Tests (5)
Integration\OtlpGrpcServiceTests.cs (2)
176await File.WriteAllTextAsync(configPath, configJson.ToString()).DefaultTimeout(); 219await File.WriteAllTextAsync(configPath, configJson.ToString()).DefaultTimeout();
Integration\StartupTests.cs (3)
213await File.WriteAllTextAsync(browserTokenConfigFile, changedFrontendBrowserToken).DefaultTimeout(); 559await File.WriteAllTextAsync(configFilePath, configJson.ToString()).DefaultTimeout(); 802await File.WriteAllTextAsync(browserTokenConfigFile, browserToken);
Aspire.Hosting (1)
Devcontainers\DevcontainerSettingsWriter.cs (1)
135await File.WriteAllTextAsync(settingsPath, settingsContent, cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Azure (2)
AzurePublishingContext.cs (1)
416await File.WriteAllTextAsync(bicepPath, compiledBicep.Value).ConfigureAwait(false);
Provisioning\Internal\DefaultUserSecretsManager.cs (1)
62await File.WriteAllTextAsync(userSecretsPath, flattenedSecrets.ToJsonString(s_jsonSerializerOptions), cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Containers.Tests (1)
DockerSocketBindMountTests.cs (1)
25await File.WriteAllTextAsync(dockerFilePath, dockerfile);
Aspire.Hosting.Docker (1)
DockerComposePublishingContext.cs (1)
147await File.WriteAllTextAsync(outputFile, composeOutput, cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Kubernetes (2)
KubernetesPublishingContext.cs (2)
164await File.WriteAllTextAsync(outputFile, valuesYaml, cancellationToken).ConfigureAwait(false); 184await File.WriteAllTextAsync(outputFile, chartYaml, cancellationToken).ConfigureAwait(false);
Aspire.Hosting.MongoDB.Tests (2)
MongoDbFunctionalTests.cs (2)
264await File.WriteAllTextAsync(initFilePath, $$""" 362await File.WriteAllTextAsync(initFilePath, $$"""
Aspire.Hosting.Tests (3)
ProjectResourceTests.cs (2)
51await File.WriteAllTextAsync(projectFilePath, csProjContent).DefaultTimeout(); 54await File.WriteAllTextAsync(launchSettingsFilePath, launchSettingsContent).DefaultTimeout();
Utils\DockerfileUtils.cs (1)
53await File.WriteAllTextAsync(tempDockerfilePath, dockerfileContent);
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (3)
UserJwtsTests.cs (3)
285await File.WriteAllTextAsync(secretsFilePath, 507await File.WriteAllTextAsync(secretsFilePath, 534await File.WriteAllTextAsync(secretsFilePath,
Microsoft.AspNetCore.FunctionalTests (4)
WebApplicationFunctionalTests.cs (4)
21await File.WriteAllTextAsync(Path.Combine(contentRootPath, "appsettings.json"), @" 64await File.WriteAllTextAsync(Path.Combine(contentRootPath, "appsettings.Development.json"), @" 107await File.WriteAllTextAsync(Path.Combine(contentRootPath, "appsettings.json"), @" 143await File.WriteAllTextAsync(Path.Combine(contentRootPath, "appsettings.json"), @"
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
369await File.WriteAllTextAsync(baselineFilePath, newSource);
Microsoft.AspNetCore.Http.Microbenchmarks (1)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
369await File.WriteAllTextAsync(baselineFilePath, newSource);
Microsoft.CodeAnalysis.LanguageServer.UnitTests (2)
Utilities\AbstractLanguageServerClientTests.cs (2)
49await File.WriteAllTextAsync(projectPath, $""" 60await File.WriteAllTextAsync(codePath, code);
Microsoft.DotNet.Open.Api.Tools.Tests (2)
OpenApiRefreshTests.cs (2)
26await File.WriteAllTextAsync(expectedJsonPath, "trash"); 56await File.WriteAllTextAsync(expectedJsonPath, PackageUrlContent);
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\Shared\E2ETesting\SauceConnectServer.cs (1)
240await File.WriteAllTextAsync(pidFile, process.Id.ToString(CultureInfo.InvariantCulture));
Templates.Blazor.WebAssembly.Tests (1)
src\Shared\E2ETesting\SauceConnectServer.cs (1)
240await File.WriteAllTextAsync(pidFile, process.Id.ToString(CultureInfo.InvariantCulture));
Templates.Mvc.Tests (2)
BlazorTemplateTest.cs (1)
198await File.WriteAllTextAsync(appRazorPath, appRazorText);
src\Shared\E2ETesting\SauceConnectServer.cs (1)
240await File.WriteAllTextAsync(pidFile, process.Id.ToString(CultureInfo.InvariantCulture));
Templates.Tests (1)
src\Shared\E2ETesting\SauceConnectServer.cs (1)
240await File.WriteAllTextAsync(pidFile, process.Id.ToString(CultureInfo.InvariantCulture));