Skip to content

Commit 43fd39c

Browse files
committed
Fixed tests
1 parent b2ca6ea commit 43fd39c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/LinkDotNet.Blog.UnitTests/Web/Features/Admin/Dashboard/Components/DateRangeSelectorTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public void ShouldSetBeginDateWhenSet()
1515
filter = f;
1616
}));
1717

18-
cut.Find("#startDate").Change(new DateTime(2020, 1, 1));
18+
cut.Find("#startDate").Change(new DateOnly(2020, 1, 1));
1919

2020
filter.Should().NotBeNull();
2121
filter.StartDate.Should().Be(new DateOnly(2020, 1, 1));
@@ -31,7 +31,7 @@ public void ShouldSetEndDateWhenSet()
3131
filter = f;
3232
}));
3333

34-
cut.Find("#endDate").Change(new DateTime(2020, 1, 1));
34+
cut.Find("#endDate").Change(new DateOnly(2020, 1, 1));
3535

3636
filter.Should().NotBeNull();
3737
filter.EndDate.Should().Be(new DateOnly(2020, 1, 1));
@@ -46,8 +46,8 @@ public void ShouldReset()
4646
{
4747
filter = f;
4848
}));
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));
5151

5252
cut.Find("#startDate").Change(string.Empty);
5353
cut.Find("#endDate").Change(string.Empty);

0 commit comments

Comments
 (0)