7 references to WithScopeForExport
Aspire.Hosting.Azure.EntraId.Tests (7)
EntraIdPolyglotTests.cs (7)
419.WithScopeForExport("access_as_user", "Allows the app to call the API.")
420.WithScopeForExport("admin", "Administer the API.", new EntraIdScopeOptions
496.WithScopeForExport("orders.read", "Read orders.", new EntraIdScopeOptions { Id = scopeId.ToString() });
527.WithScopeForExport("orders.read", "Read orders.", new EntraIdScopeOptions { Id = "11112222-aaaa-3333-bbbb-4444cccc5555" });
537var api = builder.AddEntraIdApplication("entra-api").WithScopeForExport("access_as_user", "Allows access.");
541Assert.Throws<ArgumentException>(() => api.WithScopeForExport("other", "Other.", new EntraIdScopeOptions { Id = "not-a-guid" }));
542Assert.Throws<ArgumentException>(() => api.WithScopeForExport("access_as_user", "Duplicate."));