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)
40await service.LoginAsync("registry.azurecr.io", "tenant", credential); 44var exception = await Assert.ThrowsAsync<AuthenticationFailedException>(() => service.LoginAsync("registry.azurecr.io", "tenant", credential)); 77await service.LoginAsync("registry.azurecr.io", "tenant", new StaticTokenCredential()); 102await Assert.ThrowsAsync<HttpRequestException>(() => service.LoginAsync("registry.azurecr.io", "tenant", new StaticTokenCredential())); 124await Assert.ThrowsAsync<HttpRequestException>(() => service.LoginAsync("registry.azurecr.io", "tenant", new StaticTokenCredential())); 149await Assert.ThrowsAsync<HttpRequestException>(() => service.LoginAsync("registry.azurecr.io", "tenant", new StaticTokenCredential()));