mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-09 21:09:51 +00:00
Rename IConnection methods
This commit is contained in:
@@ -26,10 +26,10 @@ namespace Octokit.Tests.Models
|
||||
ApiInfo = new ApiInfo(links, scopes, scopes, "etag", new RateLimit(new Dictionary<string, string>()))
|
||||
};
|
||||
var connection = Substitute.For<IConnection>();
|
||||
connection.GetAsync<List<object>>(nextPageUrl, null, null).Returns(nextPageResponse);
|
||||
connection.Get<List<object>>(nextPageUrl, null, null).Returns(nextPageResponse);
|
||||
var pagedCollection = new ReadOnlyPagedCollection<object>(
|
||||
response,
|
||||
nextPageUri => connection.GetAsync<List<object>>(nextPageUrl, null, null));
|
||||
nextPageUri => connection.Get<List<object>>(nextPageUrl, null, null));
|
||||
|
||||
var nextPage = await pagedCollection.GetNextPage();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user