@@ -42,10 +42,10 @@ public async Task DifferentLocalRepository()
4242 var activeRepositoryName = "activeRepositoryName" ;
4343 var activeRepositoryDir = "activeRepositoryDir" ;
4444 var context = new GitHubContext { RepositoryName = targetRepositoryName } ;
45- ( string , string ) ? gitObject = null ;
45+ ( string , string , bool ) ? resolveBlobResult = null ;
4646 var vsServices = Substitute . For < IVSServices > ( ) ;
4747 var target = CreateOpenFromClipboardCommand ( vsServices : vsServices ,
48- contextFromClipboard : context , repositoryDir : activeRepositoryDir , repositoryName : activeRepositoryName , gitObject : gitObject ) ;
48+ contextFromClipboard : context , repositoryDir : activeRepositoryDir , repositoryName : activeRepositoryName , resolveBlobResult : resolveBlobResult ) ;
4949
5050 await target . Execute ( null ) ;
5151
@@ -57,10 +57,10 @@ public async Task CouldNotResolve()
5757 {
5858 var context = new GitHubContext ( ) ;
5959 var repositoryDir = "repositoryDir" ;
60- ( string , string ) ? gitObject = null ;
60+ ( string , string , bool ) ? resolveBlobResult = null ;
6161 var vsServices = Substitute . For < IVSServices > ( ) ;
6262 var target = CreateOpenFromClipboardCommand ( vsServices : vsServices ,
63- contextFromClipboard : context , repositoryDir : repositoryDir , gitObject : gitObject ) ;
63+ contextFromClipboard : context , repositoryDir : repositoryDir , resolveBlobResult : resolveBlobResult ) ;
6464
6565 await target . Execute ( null ) ;
6666
@@ -72,10 +72,10 @@ public async Task CouldResolve()
7272 {
7373 var context = new GitHubContext ( ) ;
7474 var repositoryDir = "repositoryDir" ;
75- var gitObject = ( "master" , "foo.cs" ) ;
75+ var resolveBlobResult = ( "master" , "foo.cs" , false ) ;
7676 var vsServices = Substitute . For < IVSServices > ( ) ;
7777 var target = CreateOpenFromClipboardCommand ( vsServices : vsServices ,
78- contextFromClipboard : context , repositoryDir : repositoryDir , gitObject : gitObject ) ;
78+ contextFromClipboard : context , repositoryDir : repositoryDir , resolveBlobResult : resolveBlobResult ) ;
7979
8080 await target . Execute ( null ) ;
8181
@@ -88,10 +88,10 @@ public async Task NoChangesInWorkingDirectory()
8888 var gitHubContextService = Substitute . For < IGitHubContextService > ( ) ;
8989 var context = new GitHubContext ( ) ;
9090 var repositoryDir = "repositoryDir" ;
91- var gitObject = ( "master" , "foo.cs" ) ;
91+ var resolveBlobResult = ( "master" , "foo.cs" , false ) ;
9292 var vsServices = Substitute . For < IVSServices > ( ) ;
9393 var target = CreateOpenFromClipboardCommand ( gitHubContextService : gitHubContextService , vsServices : vsServices ,
94- contextFromClipboard : context , repositoryDir : repositoryDir , gitObject : gitObject , hasChanges : false ) ;
94+ contextFromClipboard : context , repositoryDir : repositoryDir , resolveBlobResult : resolveBlobResult , hasChanges : false ) ;
9595
9696 await target . Execute ( null ) ;
9797
@@ -109,10 +109,10 @@ public async Task HasChangesInWorkingDirectory(bool annotateFileSupported, strin
109109 var context = new GitHubContext ( ) ;
110110 var repositoryDir = "repositoryDir" ;
111111 var currentBranch = "currentBranch" ;
112- var gitObject = ( "master" , "foo.cs" ) ;
112+ var resolveBlobResult = ( "master" , "foo.cs" , false ) ;
113113 var vsServices = Substitute . For < IVSServices > ( ) ;
114114 var target = CreateOpenFromClipboardCommand ( gitHubContextService : gitHubContextService , vsServices : vsServices ,
115- contextFromClipboard : context , repositoryDir : repositoryDir , currentBranch : currentBranch , gitObject : gitObject , hasChanges : true ) ;
115+ contextFromClipboard : context , repositoryDir : repositoryDir , currentBranch : currentBranch , resolveBlobResult : resolveBlobResult , hasChanges : true ) ;
116116
117117 await target . Execute ( null ) ;
118118
@@ -137,7 +137,7 @@ static OpenFromClipboardCommand CreateOpenFromClipboardCommand(
137137 string repositoryDir = null ,
138138 string repositoryName = null ,
139139 string currentBranch = null ,
140- ( string , string ) ? gitObject = null ,
140+ ( string , string , bool ) ? resolveBlobResult = null ,
141141 bool ? hasChanges = null )
142142 {
143143 var sp = Substitute . For < IServiceProvider > ( ) ;
@@ -149,14 +149,14 @@ static OpenFromClipboardCommand CreateOpenFromClipboardCommand(
149149 teamExplorerContext . ActiveRepository . LocalPath . Returns ( repositoryDir ) ;
150150 teamExplorerContext . ActiveRepository . Name . Returns ( repositoryName ) ;
151151 teamExplorerContext . ActiveRepository . CurrentBranch . Name . Returns ( currentBranch ) ;
152- if ( gitObject != null )
152+ if ( resolveBlobResult != null )
153153 {
154- gitHubContextService . ResolveBlob ( repositoryDir , contextFromClipboard ) . Returns ( gitObject . Value ) ;
154+ gitHubContextService . ResolveBlob ( repositoryDir , contextFromClipboard ) . Returns ( resolveBlobResult . Value ) ;
155155 }
156156
157157 if ( hasChanges != null )
158158 {
159- gitHubContextService . HasChangesInWorkingDirectory ( repositoryDir , gitObject . Value . Item1 , gitObject . Value . Item2 ) . Returns ( hasChanges . Value ) ;
159+ gitHubContextService . HasChangesInWorkingDirectory ( repositoryDir , resolveBlobResult . Value . Item1 , resolveBlobResult . Value . Item2 ) . Returns ( hasChanges . Value ) ;
160160 }
161161
162162 return new OpenFromClipboardCommand (
0 commit comments