mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-06 12:03:19 +00:00
rewrite the setup of responses to use a standard helper function (#2177)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net;
|
||||
using System.Reactive.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using NSubstitute;
|
||||
@@ -7,6 +8,8 @@ using Octokit.Internal;
|
||||
using Octokit.Reactive;
|
||||
using Xunit;
|
||||
|
||||
using static Octokit.Internal.TestSetup;
|
||||
|
||||
namespace Octokit.Tests.Reactive
|
||||
{
|
||||
public class ObservablePullRequestReviewCommentsClientTests
|
||||
@@ -117,7 +120,7 @@ namespace Octokit.Tests.Reactive
|
||||
);
|
||||
var lastPageResponse = new ApiResponse<List<PullRequestReviewComment>>
|
||||
(
|
||||
new Response(),
|
||||
CreateResponse(HttpStatusCode.OK),
|
||||
new List<PullRequestReviewComment>
|
||||
{
|
||||
new PullRequestReviewComment(7)
|
||||
@@ -172,7 +175,7 @@ namespace Octokit.Tests.Reactive
|
||||
);
|
||||
var lastPageResponse = new ApiResponse<List<PullRequestReviewComment>>
|
||||
(
|
||||
new Response(),
|
||||
CreateResponse(HttpStatusCode.OK),
|
||||
new List<PullRequestReviewComment>
|
||||
{
|
||||
new PullRequestReviewComment(7)
|
||||
@@ -335,7 +338,7 @@ namespace Octokit.Tests.Reactive
|
||||
});
|
||||
var lastPageResponse = new ApiResponse<List<PullRequestReviewComment>>
|
||||
(
|
||||
new Response(),
|
||||
CreateResponse(HttpStatusCode.OK),
|
||||
new List<PullRequestReviewComment>
|
||||
{
|
||||
new PullRequestReviewComment(7),
|
||||
@@ -419,7 +422,7 @@ namespace Octokit.Tests.Reactive
|
||||
});
|
||||
var lastPageResponse = new ApiResponse<List<PullRequestReviewComment>>
|
||||
(
|
||||
new Response(),
|
||||
CreateResponse(HttpStatusCode.OK),
|
||||
new List<PullRequestReviewComment>
|
||||
{
|
||||
new PullRequestReviewComment(7),
|
||||
@@ -560,7 +563,7 @@ namespace Octokit.Tests.Reactive
|
||||
});
|
||||
var lastPageResponse = new ApiResponse<List<PullRequestReviewComment>>
|
||||
(
|
||||
new Response(),
|
||||
CreateResponse(HttpStatusCode.OK),
|
||||
new List<PullRequestReviewComment>
|
||||
{
|
||||
new PullRequestReviewComment(7),
|
||||
@@ -632,7 +635,7 @@ namespace Octokit.Tests.Reactive
|
||||
});
|
||||
var lastPageResponse = new ApiResponse<List<PullRequestReviewComment>>
|
||||
(
|
||||
new Response(),
|
||||
CreateResponse(HttpStatusCode.OK),
|
||||
new List<PullRequestReviewComment>
|
||||
{
|
||||
new PullRequestReviewComment(7),
|
||||
|
||||
Reference in New Issue
Block a user