Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit fa6f59c

Browse files
committed
Fix failing tests.
1 parent 6587ddb commit fa6f59c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/UnitTests/Helpers/TestBaseClass.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,13 @@ protected static PullRequest CreatePullRequest(User user, int id, ItemState stat
5858
DateTimeOffset createdAt, DateTimeOffset updatedAt, int commentCount = 0, int reviewCommentCount = 0)
5959
{
6060
var uri = new Uri("https://url");
61+
var repo = new Repository();
6162
return new PullRequest(uri, uri, uri, uri, uri, uri,
6263
id, state, title, "", createdAt, updatedAt,
63-
null, null, null, null, user, null, false, null,
64+
null, null,
65+
new GitReference(uri.ToString(), "foo:bar", "bar", string.Empty, user, repo),
66+
new GitReference(uri.ToString(), "foo:baz", "baz", string.Empty, user, repo),
67+
user, null, false, null,
6468
commentCount, reviewCommentCount, 0, 0, 0, 0,
6569
null, false);
6670
}

0 commit comments

Comments
 (0)