@@ -56,6 +56,8 @@ public ScpServiceTest()
56
56
_loggerFactory . Setup ( p => p . CreateLogger ( It . IsAny < string > ( ) ) ) . Returns ( _logger . Object ) ;
57
57
_associationDataProvider . Setup ( p => p . GetLogger ( It . IsAny < string > ( ) ) ) . Returns ( _loggerInternal . Object ) ;
58
58
_associationDataProvider . Setup ( p => p . Configuration ) . Returns ( _configuration ) ;
59
+ _logger . Setup ( p => p . IsEnabled ( It . IsAny < LogLevel > ( ) ) ) . Returns ( true ) ;
60
+ _loggerInternal . Setup ( p => p . IsEnabled ( It . IsAny < LogLevel > ( ) ) ) . Returns ( true ) ;
59
61
}
60
62
61
63
[ RetryFact ( 5 , 250 , DisplayName = "StartAsync - shall stop application if failed to start SCP listner" ) ]
@@ -107,7 +109,7 @@ public async Task CEcho_ShallRejectCEchoRequests()
107
109
Assert . Equal ( DicomRejectSource . ServiceUser , exception . RejectSource ) ;
108
110
Assert . Equal ( DicomRejectResult . Permanent , exception . RejectResult ) ;
109
111
110
- _loggerInternal . VerifyLogging ( $ "Verification service is disabled: rejecting association", LogLevel . Warning , Times . Once ( ) ) ;
112
+ _loggerInternal . VerifyLogging ( $ "Verification service is disabled: rejecting association. ", LogLevel . Warning , Times . Once ( ) ) ;
111
113
112
114
Assert . True ( countdownEvent . Wait ( 1000 ) ) ;
113
115
}
@@ -367,7 +369,7 @@ public async Task CStore_OnClientAbort()
367
369
368
370
await client . SendAsync ( _cancellationTokenSource . Token , DicomClientCancellationMode . ImmediatelyAbortAssociation ) ;
369
371
Assert . True ( countdownEvent . Wait ( 2000 ) ) ;
370
- _loggerInternal . VerifyLogging ( $ "Aborted { DicomAbortSource . ServiceUser } with reason { DicomAbortReason . NotSpecified } ", LogLevel . Warning , Times . Once ( ) ) ;
372
+ _loggerInternal . VerifyLogging ( $ "Aborted { DicomAbortSource . ServiceUser } with reason { DicomAbortReason . NotSpecified } . ", LogLevel . Warning , Times . Once ( ) ) ;
371
373
}
372
374
373
375
private ScpService CreateService ( )
0 commit comments