4 writes to Id
Aspire.Hosting.Azure.EntraId.Tests (4)
EntraIdPolyglotTests.cs (4)
338
Id
= scopeId.ToString()
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" });
450
Assert.Throws<ArgumentException>(() => api.WithScopeForExport("other", "Other.", new EntraIdScopeOptions {
Id
= "not-a-guid" }));
3 references to Id
Aspire.Hosting.Azure.EntraId (3)
EntraIdResourceExtensions.cs (3)
2160
if (options.
Id
is not null)
2162
scope.Id = Guid.TryParse(options.
Id
, out var id)
2164
: throw new ArgumentException($"'{options.
Id
}' is not a valid scope ID. Scope IDs must be GUIDs.", nameof(options));