28 references to GetGuid
Aspire.Deployment.EndToEnd.Tests (27)
AzureEntraIdAppRoleDeploymentTests.cs (12)
210var applicationId = application.GetProperty("appId").GetGuid(); 216$"https://graph.microsoft.com/v1.0/applications/{application.GetProperty("id").GetGuid():D}/federatedIdentityCredentials", 223resource => resource.GetProperty("appRoles").EnumerateArray().Any(r => r.GetProperty("id").GetGuid() == role.GetProperty("id").GetGuid()), 225var principalId = principal.GetProperty("id").GetGuid(); 244var identityPrincipalId = identity.GetProperty("principalId").GetGuid(); 246.Where(a => a.GetProperty("principalId").GetGuid() == identityPrincipalId).ToArray(); 254Assert.Equal(role.GetProperty("id").GetGuid(), assignment.GetProperty("appRoleId").GetGuid()); 255Assert.Equal(principalId, assignment.GetProperty("resourceId").GetGuid()); 266.Select(a => $"{a.GetProperty("principalId").GetGuid():D}/{a.GetProperty("appRoleId").GetGuid():D}/{a.GetProperty("id").GetString()}")
AzureEntraIdDeploymentTests.cs (4)
120var clientId = application.GetProperty("appId").GetGuid(); 123resource => resource.GetProperty("appId").GetGuid() == clientId 151return (application.GetProperty("id").GetGuid(), clientId, principal.GetProperty("id").GetGuid());
AzureEntraIdStarterDeploymentTests.cs (9)
105var apiClientId = apiApplication.GetProperty("appId").GetGuid(); 112var scopeId = scope.GetProperty("id").GetGuid(); 123var webClientId = webApplication.GetProperty("appId").GetGuid(); 124var webObjectId = webApplication.GetProperty("id").GetGuid(); 130Assert.Equal(apiClientId, required.GetProperty("resourceAppId").GetGuid()); 132Assert.Equal(scopeId, access.GetProperty("id").GetGuid()); 139resource => resource.GetProperty("appId").GetGuid() == clientId 151var identityClientId = identity.GetProperty("properties").GetProperty("clientId").GetGuid(); 152var identityPrincipalId = identity.GetProperty("properties").GetProperty("principalId").GetGuid();
Helpers\EntraDeploymentHelpers.cs (2)
276var clientId = application.RootElement.GetProperty("appId").GetGuid(); 277var objectId = application.RootElement.GetProperty("id").GetGuid();
Microsoft.TestPlatform.CommunicationUtilities (1)
Serialization\TestSessionInfoConverter.cs (1)
31? idProp.GetGuid()