@@ -15,7 +15,7 @@ public void ShouldSetBeginDateWhenSet()
15
15
filter = f ;
16
16
} ) ) ;
17
17
18
- cut . Find ( "#startDate" ) . Change ( new DateTime ( 2020 , 1 , 1 ) ) ;
18
+ cut . Find ( "#startDate" ) . Change ( new DateOnly ( 2020 , 1 , 1 ) ) ;
19
19
20
20
filter . Should ( ) . NotBeNull ( ) ;
21
21
filter . StartDate . Should ( ) . Be ( new DateOnly ( 2020 , 1 , 1 ) ) ;
@@ -31,7 +31,7 @@ public void ShouldSetEndDateWhenSet()
31
31
filter = f ;
32
32
} ) ) ;
33
33
34
- cut . Find ( "#endDate" ) . Change ( new DateTime ( 2020 , 1 , 1 ) ) ;
34
+ cut . Find ( "#endDate" ) . Change ( new DateOnly ( 2020 , 1 , 1 ) ) ;
35
35
36
36
filter . Should ( ) . NotBeNull ( ) ;
37
37
filter . EndDate . Should ( ) . Be ( new DateOnly ( 2020 , 1 , 1 ) ) ;
@@ -46,8 +46,8 @@ public void ShouldReset()
46
46
{
47
47
filter = f ;
48
48
} ) ) ;
49
- cut . Find ( "#startDate" ) . Change ( new DateTime ( 2020 , 1 , 1 ) ) ;
50
- cut . Find ( "#endDate" ) . Change ( new DateTime ( 2020 , 1 , 1 ) ) ;
49
+ cut . Find ( "#startDate" ) . Change ( new DateOnly ( 2020 , 1 , 1 ) ) ;
50
+ cut . Find ( "#endDate" ) . Change ( new DateOnly ( 2020 , 1 , 1 ) ) ;
51
51
52
52
cut . Find ( "#startDate" ) . Change ( string . Empty ) ;
53
53
cut . Find ( "#endDate" ) . Change ( string . Empty ) ;
0 commit comments