8 references to DownloadTextAsync
AnalyzeCiFailure (1)
Infrastructure\AnalysisGitHubClient.cs (1)
66
=> TranslateAsync(() => _githubApi.
DownloadTextAsync
(endpoint, maximumBytes, cancellationToken));
AnalyzeCiFailure.Tests (7)
GitHubApiClientTests.cs (7)
597
var result = await client.
DownloadTextAsync
("logs", maximumBytes: 100, default);
617
var result = await client.
DownloadTextAsync
("repos/a/b/logs?token=secret", maximumBytes: 100, default);
638
var result = await client.
DownloadTextAsync
("logs", maximumBytes: 100, default);
657
var result = await client.
DownloadTextAsync
("logs", maximumBytes: 100, default);
704
var result = await client.
DownloadTextAsync
("logs", maximumBytes: 100, default);
718
var result = await client.
DownloadTextAsync
("logs", maximumBytes: 5, default);
812
await Assert.ThrowsAnyAsync<OperationCanceledException>(() => client.
DownloadTextAsync
("logs", maximumBytes: 100, cancellation.Token));