Implemented interface member:
method
LoginAsync
Aspire.Hosting.Azure.IAcrLoginService.LoginAsync(System.String, System.String, Azure.Core.TokenCredential, System.Threading.CancellationToken)
4 references to LoginAsync
Aspire.Hosting.Azure.Tests (4)
AcrLoginServiceTests.cs (4)
38
await service.
LoginAsync
("registry.azurecr.io", "tenant", new StaticTokenCredential());
63
await Assert.ThrowsAsync<HttpRequestException>(() => service.
LoginAsync
("registry.azurecr.io", "tenant", new StaticTokenCredential()));
85
await Assert.ThrowsAsync<HttpRequestException>(() => service.
LoginAsync
("registry.azurecr.io", "tenant", new StaticTokenCredential()));
110
await Assert.ThrowsAsync<HttpRequestException>(() => service.
LoginAsync
("registry.azurecr.io", "tenant", new StaticTokenCredential()));