11 references to WithAppRoleForExport
Aspire.Hosting.Azure.EntraId.Tests (11)
EntraIdPolyglotTests.cs (10)
380
.
WithAppRoleForExport
("User", "User", "Can use the API.")
381
.
WithAppRoleForExport
("Admin", "Administrator", "Can administer the API.", ["User", "Application"])
382
.
WithAppRoleForExport
("Reader", "Reader", "Can read data.", ["Application"], roleId.ToString())
383
.
WithAppRoleForExport
("Retired", "Retired", "Being removed.", isEnabled: false);
394
Assert.Throws<ArgumentException>(() => exportedEntra.
WithAppRoleForExport
("Other", "Other", "Other role.", id: "not-a-guid"));
395
Assert.Throws<ArgumentException>(() => exportedEntra.
WithAppRoleForExport
("User", "Duplicate", "Duplicate value."));
396
Assert.Throws<ArgumentException>(() => exportedEntra.
WithAppRoleForExport
("Other", "Other", "Other role.", []));
400
Assert.Throws<InvalidOperationException>(() => existing.
WithAppRoleForExport
("Admin", "Admin", "Admin role."));
612
.
WithAppRoleForExport
("Read", "Read", "Read.", ["Application"]);
627
.
WithAppRoleForExport
("Read", "Read", "Read.", ["Application"]);
EntraIdProvisioningTests.cs (1)
188
"role-export" => entra.
WithAppRoleForExport
("Reader", "Reader", "Read data."),