@@ -94,7 +94,8 @@ public async Task LoggedOutShownWhenNotLoggedInToEnterprise()
9494 public async Task NavigatorShownWhenRepositoryIsAGitHubRepo ( )
9595 {
9696 var te = CreateTeamExplorerServiceHolder ( ValidGitHubRepo ) ;
97- var target = CreateTarget ( teServiceHolder : te ) ;
97+ var cm = CreateConnectionManager ( "https://github.com" ) ;
98+ var target = CreateTarget ( teServiceHolder : te , connectionManager : cm ) ;
9899
99100 await Initialize ( target ) ;
100101
@@ -105,7 +106,8 @@ public async Task NavigatorShownWhenRepositoryIsAGitHubRepo()
105106 public async Task NavigatorShownWhenRepositoryIsAnEnterpriseRepo ( )
106107 {
107108 var te = CreateTeamExplorerServiceHolder ( ValidEnterpriseRepo ) ;
108- var target = CreateTarget ( teServiceHolder : te ) ;
109+ var cm = CreateConnectionManager ( "https://enterprise.com" ) ;
110+ var target = CreateTarget ( teServiceHolder : te , connectionManager : cm ) ;
109111
110112 await Initialize ( target ) ;
111113
@@ -249,6 +251,7 @@ static void AddConnection(IConnectionManager connectionManager, string address)
249251 var hostAddress = HostAddress . Create ( address ) ;
250252 var connections = ( ObservableCollectionEx < IConnection > ) connectionManager . Connections ;
251253 connection . HostAddress . Returns ( hostAddress ) ;
254+ connection . IsLoggedIn . Returns ( true ) ;
252255 connectionManager . GetConnection ( hostAddress ) . Returns ( connection ) ;
253256 connections . Add ( connection ) ;
254257 }
0 commit comments