Implemented interface member:
method
LoginAsync
Aspire.Hosting.Azure.IAcrLoginService.LoginAsync(System.String, System.String, Azure.Core.TokenCredential, System.Threading.CancellationToken)
6 references to LoginAsync
Aspire.Hosting.Azure.Tests (6)
AcrLoginServiceTests.cs (6)
40
await service.
LoginAsync
("registry.azurecr.io", "tenant", credential);
44
var exception = await Assert.ThrowsAsync<AuthenticationFailedException>(() => service.
LoginAsync
("registry.azurecr.io", "tenant", credential));
77
await service.
LoginAsync
("registry.azurecr.io", "tenant", new StaticTokenCredential());
102
await Assert.ThrowsAsync<HttpRequestException>(() => service.
LoginAsync
("registry.azurecr.io", "tenant", new StaticTokenCredential()));
124
await Assert.ThrowsAsync<HttpRequestException>(() => service.
LoginAsync
("registry.azurecr.io", "tenant", new StaticTokenCredential()));
149
await Assert.ThrowsAsync<HttpRequestException>(() => service.
LoginAsync
("registry.azurecr.io", "tenant", new StaticTokenCredential()));