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

Commit eda939e

Browse files
committed
Internal constructor helper for ModelService
1 parent 6d89938 commit eda939e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/GitHub.App/Models/PullRequestModel.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using GitHub.VisualStudio.Helpers;
55
using NullGuard;
66
using System.Diagnostics;
7+
using GitHub.SampleData;
78

89
namespace GitHub.Models
910
{
@@ -22,6 +23,13 @@ public PullRequestModel(int number, string title,
2223
UpdatedAt = updatedAt ?? CreatedAt;
2324
}
2425

26+
internal PullRequestModel(int number)
27+
{
28+
Number = number;
29+
Title = "";
30+
Author = new AccountDesigner();
31+
}
32+
2533
public void CopyFrom(IPullRequestModel other)
2634
{
2735
if (!Equals(other))

0 commit comments

Comments
 (0)