53 writes to ReadConfiguration
Aspire.Cli.Tests (53)
Commands\ConfigSourceCommandTests.cs (18)
237
ReadConfiguration
= (_, _) => Task.FromResult(("version-1", JsonNode.Parse("""
317
git.
ReadConfiguration
= (_, _) => Task.FromResult(("version-1", JsonNode.Parse("""
375
git.
ReadConfiguration
= (_, _) =>
423
git.
ReadConfiguration
= (_, _) => Task.FromResult(("version-2", new JsonObject()));
456
git.
ReadConfiguration
= (_, _) => throw new ConfigSourceException(timeout ? ConfigSourceStrings.GitTimeout : ConfigSourceStrings.AuthenticationFailed)
603
git.
ReadConfiguration
= (_, _) => Task.FromResult(("version-2", new JsonObject()));
657
git.
ReadConfiguration
= (_, _) => Task.FromResult(("version-2", new JsonObject()));
745
git.
ReadConfiguration
= (_, _) => Task.FromResult(("version-2", new JsonObject()));
814
ReadConfiguration
= (_, _) => Task.FromResult(("version-1", new JsonObject
960
git.
ReadConfiguration
= (source, _) =>
987
ReadConfiguration
= (_, _) => Task.FromResult(("version-1", new JsonObject
1090
git.
ReadConfiguration
= (source, _) =>
1386
refreshGit.
ReadConfiguration
= (source, _) =>
1422
git.
ReadConfiguration
= (_, _) => throw new ConfigSourceException(ConfigSourceStrings.AuthenticationFailed);
1475
git.
ReadConfiguration
= (_, _) => throw new ConfigSourceException(errorMessage);
1519
git.
ReadConfiguration
= (_, _) => throw new ConfigSourceException(errorMessage);
1554
git.
ReadConfiguration
= (_, _) => throw new ConfigSourceException(ConfigSourceStrings.GitTimeout);
1577
ReadConfiguration
= (_, _) => Task.FromResult(("version-1", new JsonObject
Commands\NewCommandLocalTemplateTests.InitConfig.cs (7)
45
ReadConfiguration
= (source, _) =>
85
ReadConfiguration
= (_, _) => throw new InvalidOperationException("Help must not acquire init configuration.")
102
ReadConfiguration
= (_, _) => throw new ConfigSourceException("Configuration source unavailable.")
125
ReadConfiguration
= (_, _) => Task.FromResult(("version-1", JsonNode.Parse("""
196
ReadConfiguration
= (_, _) => Task.FromResult(("version-1", JsonNode.Parse($$"""
256
ReadConfiguration
= (_, _) => throw new InvalidOperationException("Declined configuration must not be acquired.")
285
ReadConfiguration
= (_, _) => Task.FromResult(("version-1", JsonNode.Parse("""
Commands\NewCommandLocalTemplateTests.SourceList.cs (3)
214
ReadConfiguration
= (source, _) =>
303
ReadConfiguration
= (_, _) => throw new InvalidOperationException("JSON without opt-in must not acquire configuration.")
399
ReadConfiguration
= (source, _) =>
Configuration\ConfigSourceServiceTests.cs (25)
45
ReadConfiguration
= (source, _) =>
135
ReadConfiguration
= (_, _) => Task.FromResult(("version-1", JsonNode.Parse("""
188
ReadConfiguration
= (_, _) => Task.FromResult(("version-1", JsonNode.Parse(json)!.AsObject()))
330
git.
ReadConfiguration
= (source, _) =>
429
git.
ReadConfiguration
= (source, _) =>
677
ReadConfiguration
= (_, _) => Task.FromResult(("version-2", new JsonObject
1025
ReadConfiguration
= (_, _) =>
1267
ReadConfiguration
= (_, _) => throw new ConfigSourceException(ConfigSourceStrings.AuthenticationFailed)
1308
ReadConfiguration
= (_, _) => Task.FromResult(("version-1", JsonNode.Parse("""
1332
ReadConfiguration
= (_, _) => Task.FromResult(("version-1", JsonNode.Parse("""
1353
ReadConfiguration
= (_, _) => Task.FromResult(("version-1", JsonNode.Parse("""
1375
ReadConfiguration
= (_, _) => Task.FromResult(("version-2", JsonNode.Parse("""
1403
ReadConfiguration
= (_, _) => Task.FromResult(("version-2", JsonNode.Parse("""
1433
ReadConfiguration
= (_, _) => Task.FromResult(("version-2", JsonNode.Parse(flattenedSource
1464
ReadConfiguration
= (_, _) => Task.FromResult(("version-2", JsonNode.Parse("""
1491
ReadConfiguration
= (_, _) => Task.FromResult(("version-2", JsonNode.Parse("""
1747
git.
ReadConfiguration
= (_, _) =>
1844
git.
ReadConfiguration
= (_, token) =>
1877
ReadConfiguration
= (_, _) =>
1919
ReadConfiguration
= async (_, token) =>
1943
git.
ReadConfiguration
= (_, _) =>
1967
git.
ReadConfiguration
= (_, _) =>
2085
ReadConfiguration
= (_, _) => Task.FromResult(("version-1", JsonNode.Parse("""
2100
git.
ReadConfiguration
= (_, _) => Task.FromResult(("version-2", new JsonObject()));
2154
ReadConfiguration
= (_, _) => Task.FromResult(("version-2", new JsonObject()))
1 reference to ReadConfiguration
Aspire.Cli.Tests (1)
TestServices\TestConfigSourceServices.cs (1)
135
var configuration = await
ReadConfiguration
(source, cancellationToken);