15 references to AddParameter
Aspire.Hosting.Azure.Tests (4)
AzureContainerAppsTests.cs (2)
483
var secretValue = builder.
AddParameter
("value0", "x", secret: true);
486
var value = builder.
AddParameter
("value1", "y");
AzurePostgresExtensionsTests.cs (2)
299
var usr = builder.
AddParameter
("usr", "user");
300
var pwd = builder.
AddParameter
("pwd", "p@ssw0rd1", secret: true);
Aspire.Hosting.Nats.Tests (6)
AddNatsTests.cs (4)
62
var userParameters = appBuilder.
AddParameter
("user", "usr");
63
var passwordParameters = appBuilder.
AddParameter
("pass", "password");
129
var user = appBuilder.
AddParameter
("user", "usr");
130
var pass = appBuilder.
AddParameter
("pass", "pass");
NatsFunctionalTests.cs (2)
73
var usernameParameter = user is null ? null : builder.
AddParameter
("user", user);
74
var passwordParameter = password is null ? null : builder.
AddParameter
("pass", password);
Aspire.Hosting.PostgreSQL.Tests (1)
AddPostgresTests.cs (1)
455
var username = builder.
AddParameter
("pg-user", "myuser");
Aspire.Hosting.Tests (3)
AddParameterTests.cs (3)
140
appBuilder.
AddParameter
("pass", "DefaultValue");
190
appBuilder.
AddParameter
("pass", "DefaultValue", publishValueAsDefault: true);
227
var ex2 = Assert.Throws<ArgumentException>(() => appBuilder.
AddParameter
("pass", "SomeSecret", publishValueAsDefault: true, secret: true));
AzureContainerApps.AppHost (1)
Program.cs (1)
12
var param = builder.
AddParameter
("secretparam", "fakeSecret", secret: true);