This repository was archived by the owner on Jun 21, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
test/GitHub.InlineReviews.UnitTests/Tags Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -501,14 +501,11 @@ static IPullRequestSessionFile CreateSessionFile(bool withComments = true, bool
501501
502502 if ( withAnnotations )
503503 {
504- var annotation1 = Substitute . For < InlineAnnotationModel > ( ) ;
505- annotation1 . EndLine . Returns ( 11 ) ;
504+ var annotation1 = new InlineAnnotationModel ( new CheckSuiteModel ( ) , new CheckRunModel ( ) , new CheckRunAnnotationModel ( ) { EndLine = 11 } ) ;
506505
507- var annotation2 = Substitute . For < InlineAnnotationModel > ( ) ;
508- annotation2 . EndLine . Returns ( 21 ) ;
506+ var annotation2 = new InlineAnnotationModel ( new CheckSuiteModel ( ) , new CheckRunModel ( ) , new CheckRunAnnotationModel ( ) { EndLine = 21 } ) ;
509507
510- var annotation3 = Substitute . For < InlineAnnotationModel > ( ) ;
511- annotation3 . EndLine . Returns ( 21 ) ;
508+ var annotation3 = new InlineAnnotationModel ( new CheckSuiteModel ( ) , new CheckRunModel ( ) , new CheckRunAnnotationModel ( ) { EndLine = 21 } ) ;
512509
513510 var annotations = new List < InlineAnnotationModel > { annotation1 , annotation2 , annotation3 } ;
514511
You can’t perform that action at this time.
0 commit comments