23 references to WithNamespace
Aspire.Hosting.Radius.Tests (23)
InnerLoop\GracefulDegradationTests.cs (1)
83
builder.AddRadiusEnvironment("testenv").
WithNamespace
("test-ns");
InnerLoop\MultiEnvironmentTests.cs (8)
17
builder.AddRadiusEnvironment("env1").
WithNamespace
("ns1");
18
builder.AddRadiusEnvironment("env2").
WithNamespace
("ns2");
39
builder.AddRadiusEnvironment("env1").
WithNamespace
("ns1");
40
builder.AddRadiusEnvironment("env2").
WithNamespace
("ns2");
59
var env1 = builder.AddRadiusEnvironment("env1").
WithNamespace
("ns1");
60
var env2 = builder.AddRadiusEnvironment("env2").
WithNamespace
("ns2");
78
var env1 = builder.AddRadiusEnvironment("env1").
WithNamespace
("ns1");
79
builder.AddRadiusEnvironment("env2").
WithNamespace
("ns2");
Publishing\ContainerEnvironmentEmissionTests.cs (3)
70
builder.AddRadiusEnvironment("myenv").
WithNamespace
("custom-ns");
89
var frontendEnv = builder.AddRadiusEnvironment("frontend-env").
WithNamespace
("frontend-ns");
90
var dataEnv = builder.AddRadiusEnvironment("data-env").
WithNamespace
("data-ns");
Publishing\ExistingSecretStoreBicepTests.cs (1)
21
var env = builder.AddRadiusEnvironment("radius").
WithNamespace
(environmentNamespace);
RadiusExtensionsTests.cs (10)
57
.
WithNamespace
("staging-ns");
68
Assert.Throws<ArgumentException>(() => resourceBuilder.
WithNamespace
("Invalid_Namespace"));
77
Assert.Throws<ArgumentException>(() => resourceBuilder.
WithNamespace
("-invalid"));
86
Assert.Throws<ArgumentException>(() => resourceBuilder.
WithNamespace
("invalid-"));
95
Assert.Throws<ArgumentException>(() => resourceBuilder.
WithNamespace
("MyNamespace"));
105
Assert.Throws<ArgumentException>(() => resourceBuilder.
WithNamespace
(longName));
115
resourceBuilder.
WithNamespace
("a");
119
resourceBuilder.
WithNamespace
("my-ns");
123
resourceBuilder.
WithNamespace
("123");
128
resourceBuilder.
WithNamespace
(maxName);