@@ -12,14 +12,43 @@ internal static class GitHubMockData
1212 public static PullRequest CreatePullRequest ( int number , ItemState state , int userId = 111 , bool ? mergeable = null )
1313 => new PullRequest (
1414 id : number ,
15- nodeId : string . Empty , url : string . Empty , htmlUrl : $ "https://www.github.com/org1/repo1/pull/{ number } ", diffUrl : string . Empty , patchUrl : string . Empty , issueUrl : string . Empty , statusesUrl : string . Empty ,
16- number : number , state : state ,
17- title : string . Empty , body : string . Empty ,
18- createdAt : DateTimeOffset . UtcNow , updatedAt : DateTimeOffset . UtcNow , closedAt : null , mergedAt : null ,
19- head : new GitReference ( nodeId : "121sdad23" , url : "" , label : "" , @ref : "branch" , sha : "aaaaa1111" , user : null , repository : null ) , @base : null , user : CreateUser ( userId ) , assignee : null , assignees : null ,
20- draft : false , mergeable : mergeable , mergeableState : null , mergedBy : null , mergeCommitSha : string . Empty ,
21- comments : 0 , commits : 0 , additions : 0 , deletions : 0 , changedFiles : 0 , milestone : null ,
22- locked : false , maintainerCanModify : null , requestedReviewers : null , requestedTeams : null , labels : null ) ;
15+ nodeId : string . Empty ,
16+ url : string . Empty ,
17+ htmlUrl : $ "https://www.github.com/org1/repo1/pull/{ number } ",
18+ diffUrl : string . Empty ,
19+ patchUrl : string . Empty ,
20+ issueUrl : string . Empty ,
21+ statusesUrl : string . Empty ,
22+ number : number ,
23+ state : state ,
24+ title : string . Empty ,
25+ body : string . Empty ,
26+ createdAt : DateTimeOffset . UtcNow ,
27+ updatedAt : DateTimeOffset . UtcNow ,
28+ closedAt : null ,
29+ mergedAt : null ,
30+ head : new GitReference ( nodeId : "121sdad23" , url : "" , label : "" , @ref : "branch" , sha : "aaaaa1111" , user : null , repository : null ) ,
31+ @base : null ,
32+ user : CreateUser ( userId ) ,
33+ assignee : null ,
34+ assignees : null ,
35+ draft : false ,
36+ mergeable : mergeable ,
37+ mergeableState : null ,
38+ mergedBy : null ,
39+ mergeCommitSha : string . Empty ,
40+ comments : 0 ,
41+ commits : 0 ,
42+ additions : 0 ,
43+ deletions : 0 ,
44+ changedFiles : 0 ,
45+ milestone : null ,
46+ locked : false ,
47+ maintainerCanModify : null ,
48+ requestedReviewers : null ,
49+ requestedTeams : null ,
50+ labels : null ,
51+ activeLockReason : null ) ;
2352
2453 public static RepositoryContent CreateRepositoryFileContent ( string filePath , string content )
2554 => new RepositoryContent (
@@ -38,9 +67,25 @@ public static RepositoryContent CreateNeptunTxtFileContent(string content = null
3867
3968 public static IssueEvent CreateIssueEvent ( EventInfoState @event , int actorId )
4069 => new IssueEvent (
41- id : 1234 , nodeId : string . Empty , url : string . Empty , actor : CreateUser ( actorId ) ,
42- assignee : null , label : null , @event : @event ,
43- commitId : null , createdAt : DateTimeOffset . UtcNow , issue : null , commitUrl : null , rename : null , projectCard : null ) ;
70+ id : 1234 ,
71+ nodeId : string . Empty ,
72+ url : string . Empty ,
73+ actor : CreateUser ( actorId ) ,
74+ assignee : null ,
75+ label : null ,
76+ @event : @event ,
77+ commitId : null ,
78+ createdAt : DateTimeOffset . UtcNow ,
79+ issue : null ,
80+ commitUrl : null ,
81+ rename : null ,
82+ projectCard : null ,
83+ reviewRequester : null ,
84+ requestedReviewer : null ,
85+ assigner : null ,
86+ dismissedReview : null ,
87+ milestone : null ,
88+ lockReason : LockReason . Resolved ) ;
4489
4590 public static User CreateUser ( int actorId )
4691 => new User (
0 commit comments