@@ -14,25 +14,25 @@ public class ScheduleClientImplTests
1414{
1515 readonly Mock < DurableTaskClient > durableTaskClient ;
1616 readonly Mock < DurableEntityClient > entityClient ;
17- readonly Mock < ILogger > logger ;
17+ readonly ILogger logger ;
1818 readonly ScheduleClientImpl client ;
1919 readonly string scheduleId = "test-schedule" ;
2020
2121 public ScheduleClientImplTests ( )
2222 {
2323 this . durableTaskClient = new Mock < DurableTaskClient > ( "test" , MockBehavior . Strict ) ;
2424 this . entityClient = new Mock < DurableEntityClient > ( "test" , MockBehavior . Strict ) ;
25- this . logger = new Mock < ILogger > ( MockBehavior . Loose ) ;
25+ this . logger = new TestLogger ( ) ;
2626 this . durableTaskClient . Setup ( x => x . Entities ) . Returns ( this . entityClient . Object ) ;
27- this . client = new ScheduleClientImpl ( this . durableTaskClient . Object , this . scheduleId , this . logger . Object ) ;
27+ this . client = new ScheduleClientImpl ( this . durableTaskClient . Object , this . scheduleId , this . logger ) ;
2828 }
2929
3030 [ Fact ]
3131 public void Constructor_WithNullClient_ThrowsArgumentNullException ( )
3232 {
3333 // Act & Assert
34- var ex = Assert . Throws < ArgumentNullException > ( ( ) =>
35- new ScheduleClientImpl ( null ! , this . scheduleId , this . logger . Object ) ) ;
34+ ArgumentNullException ex = Assert . Throws < ArgumentNullException > ( ( ) =>
35+ new ScheduleClientImpl ( null ! , this . scheduleId , this . logger ) ) ;
3636 Assert . Equal ( "client" , ex . ParamName ) ;
3737 }
3838
@@ -43,7 +43,7 @@ public void Constructor_WithInvalidScheduleId_ThrowsArgumentException(string inv
4343 {
4444 // Act & Assert
4545 var ex = Assert . Throws < ArgumentException > ( ( ) =>
46- new ScheduleClientImpl ( this . durableTaskClient . Object , invalidScheduleId , this . logger . Object ) ) ;
46+ new ScheduleClientImpl ( this . durableTaskClient . Object , invalidScheduleId , this . logger ) ) ;
4747 Assert . Contains ( "scheduleId cannot be null or empty" , ex . Message , StringComparison . OrdinalIgnoreCase ) ;
4848 }
4949
0 commit comments