14 references to PublishWithAppRoleAssignment
Aspire.Hosting.Azure.EntraId (1)
EntraIdResourceExtensions.cs (1)
2102IResourceBuilder<IComputeResource> compute => builder.PublishWithAppRoleAssignment(compute, roleValues),
Aspire.Hosting.Azure.EntraId.Tests (13)
EntraIdAppRoleAssignmentTests.cs (13)
66Assert.Throws<ArgumentException>(() => api.PublishWithAppRoleAssignment(worker, "Orders.Read", role)); 80Assert.Throws<ArgumentNullException>(() => EntraIdResourceExtensions.PublishWithAppRoleAssignment(null!, worker, "Read")); 82Assert.Throws<ArgumentNullException>(() => api.PublishWithAppRoleAssignment((IResourceBuilder<ContainerResource>)null!, "Read")); 84Assert.Throws<ArgumentNullException>(() => api.PublishWithAppRoleAssignment(worker, null!)); 86Assert.Throws<ArgumentException>(() => api.PublishWithAppRoleAssignment(worker)); 99Assert.Throws<InvalidOperationException>(() => existing.PublishWithAppRoleAssignment(worker, "Read")); 134.PublishWithAppRoleAssignment(worker, "Read"); 150.PublishWithAppRoleAssignment(worker, "Read") 151.PublishWithAppRoleAssignment(other, "Read") 167.PublishWithAppRoleAssignment(worker, "Read"); 183api.PublishWithAppRoleAssignment(worker, "Read"); 202.PublishWithAppRoleAssignment(worker, "Read"); 230api.PublishWithAppRoleAssignment(worker, "Read");