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