21 references to WithRecipeParameters
Aspire.Hosting.Radius.Tests (21)
Publishing\RadiusDeployParametersTests.cs (2)
26.WithRecipeParameters(p => p["apiKey"] = secret); 50.WithRecipeParameters(p => p["apiKey"] = secret);
Recipes\RecipePackParametersBicepTests.cs (2)
27.WithRecipeParameters(p => 74.WithRecipeParameters(p => { p["region"] = "us-west-2"; p["replicas"] = 3; });
Recipes\RecipeParameterAdvancedTests.cs (9)
29.WithRecipeParameters(p => p["apiKey"] = secret); 48.WithRecipeParameters(p => 85.WithRecipeParameters(p => { p["shared"] = "all"; p["tier"] = "base"; }) 122.WithRecipeParameters(p => p["region"] = RadiusProviderReference.AwsRegion); 137.WithRecipeParameters(p => 162.WithRecipeParameters(p => p["region"] = RadiusProviderReference.AwsRegion); 195.WithRecipeParameters(p => 220.WithRecipeParameters(p => p["apiKey"] = recipeParam); 238.WithRecipeParameters(p => p["apiKey"] = shared);
Recipes\RecipeParameterIsolationAndFidelityTests.cs (2)
15var dev = builder.AddRadiusEnvironment("dev").WithRecipeParameters(p => p["region"] = "dev-region"); 16var prod = builder.AddRadiusEnvironment("prod").WithRecipeParameters(p => p["region"] = "prod-region");
Recipes\WithRecipeParametersTests.cs (6)
16var returned = env.WithRecipeParameters(p => p["vpcId"] = "vpc-1"); 30env.WithRecipeParameters(p => { p["a"] = 1; p["b"] = 2; }); 31env.WithRecipeParameters(p => { p["b"] = 99; p["c"] = 3; }); 58Assert.Throws<ArgumentException>(() => env.WithRecipeParameters(p => p[" "] = "x")); 70Assert.Throws<ArgumentException>(() => env.WithRecipeParameters(p => 86Assert.Throws<ArgumentNullException>(() => env.WithRecipeParameters(configure: null!));