8 references to WithAppRoleForExport
Aspire.Hosting.Azure.EntraId.Tests (8)
EntraIdPolyglotTests.cs (8)
291.WithAppRoleForExport("User", "User", "Can use the API.")
292.WithAppRoleForExport("Admin", "Administrator", "Can administer the API.", ["User", "Application"])
293.WithAppRoleForExport("Reader", "Reader", "Can read data.", ["Application"], roleId.ToString())
294.WithAppRoleForExport("Retired", "Retired", "Being removed.", isEnabled: false);
305Assert.Throws<ArgumentException>(() => exportedEntra.WithAppRoleForExport("Other", "Other", "Other role.", id: "not-a-guid"));
306Assert.Throws<ArgumentException>(() => exportedEntra.WithAppRoleForExport("User", "Duplicate", "Duplicate value."));
307Assert.Throws<ArgumentException>(() => exportedEntra.WithAppRoleForExport("Other", "Other", "Other role.", []));
311Assert.Throws<InvalidOperationException>(() => existing.WithAppRoleForExport("Admin", "Admin", "Admin role."));