File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
tests/MongoDB.Driver.Core.Tests/Jira Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -197,6 +197,7 @@ private IConnectionPoolFactory CreateAndSetupConnectionPoolFactory(params (Serve
197
197
198
198
void SetupConnection ( Mock < IConnectionHandle > mockConnectionHandle , ServerId serverId )
199
199
{
200
+ mockConnectionHandle . SetupGet ( f => f . Settings ) . Returns ( ( ) => new ConnectionSettings ( ) ) ;
200
201
mockConnectionHandle . SetupGet ( c => c . ConnectionId ) . Returns ( new ConnectionId ( serverId ) ) ;
201
202
}
202
203
@@ -304,6 +305,7 @@ private void SetupServerMonitorConnection(
304
305
305
306
mockConnection . SetupGet ( c => c . ConnectionId ) . Returns ( connectionId ) ;
306
307
mockConnection . SetupGet ( c => c . EndPoint ) . Returns ( serverId . EndPoint ) ;
308
+ mockConnection . SetupGet ( f => f . Settings ) . Returns ( ( ) => new ConnectionSettings ( ) ) ;
307
309
308
310
mockConnection
309
311
. SetupGet ( c => c . Description )
You can’t perform that action at this time.
0 commit comments