mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-08 12:42:32 +00:00
Make some of the IResponse properties readonly
This commit is contained in:
@@ -19,11 +19,9 @@ namespace Octokit.Tests.Models
|
||||
new ApiResponse<List<object>>(new Response(), new List<object> {new object(), new object()}));
|
||||
var links = new Dictionary<string, Uri> {{"next", nextPageUrl}};
|
||||
var scopes = new List<string>();
|
||||
|
||||
var response = new ApiResponse<List<object>>(new Response
|
||||
{
|
||||
ApiInfo = new ApiInfo(links, scopes, scopes, "etag", new RateLimit(new Dictionary<string, string>()))
|
||||
}, new List<object>());
|
||||
var httpResponse = Substitute.For<IResponse>();
|
||||
httpResponse.ApiInfo.Returns(new ApiInfo(links, scopes, scopes, "etag", new RateLimit(new Dictionary<string, string>())));
|
||||
var response = new ApiResponse<List<object>>(httpResponse, new List<object>());
|
||||
var connection = Substitute.For<IConnection>();
|
||||
connection.Get<List<object>>(nextPageUrl, null, null).Returns(nextPageResponse);
|
||||
var pagedCollection = new ReadOnlyPagedCollection<object>(
|
||||
|
||||
Reference in New Issue
Block a user