Rename IConnection methods

This commit is contained in:
Paul Betts
2014-04-30 21:30:45 -07:00
parent 939328938c
commit c18b156fab
23 changed files with 78 additions and 78 deletions
@@ -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();