9 references to GitHubApiClient
AnalyzeCiFailure (1)
tools\Aspire.TestTools\GitHubApiClient.cs (1)
87return new GitHubApiClient(http, GetDefaultTokenAsync, new Uri("https://api.github.com/")) { _ownsHttpClient = true };
AnalyzeCiFailure.TestHost (1)
CommandHost.cs (1)
17() => new GitHubApiClient(http, _ => Task.FromResult("fixture-token"), new Uri("https://api.github.com/")));
AnalyzeCiFailure.Tests (7)
AnalyzeCiFailureWorkflowTests.cs (1)
5265return new GitHubApiClient(
GitHubApiClientTests.cs (6)
31var client = new GitHubApiClient( 95using var client = new GitHubApiClient(http, _ => Task.FromException<string>(cause), s_api); 108using var client = new GitHubApiClient( 132using var client = new GitHubApiClient(http, _ => Task.FromResult(token), s_api); 868using var client = new GitHubApiClient(http, _ => throw new InvalidOperationException("Must not authenticate."), s_api); 873private static GitHubApiClient Create(HttpClient http) => new(http, _ => Task.FromResult("example-token"), s_api);