Skip to content

Commit

Permalink
cmnts
Browse files Browse the repository at this point in the history
  • Loading branch information
oskogstad committed Mar 6, 2025
1 parent 4b2fe2d commit 906a420
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ public async Task Cannot_Filter_On_DueAfter_With_Value_Greater_Than_DueBefore()
public static IEnumerable<object[]> DueAtTestData()
{
var currentYear = DateTimeOffset.UtcNow.Year;

// The numbers added to "currentYear" here represent future years relative to the current year.
// This is done to create test data for dialogs that are due "soon" (1 to 4 years ahead).
// This approach ensures that the tests remain valid and relevant regardless of the current date.
return new List<object[]>
{
new object[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ public async Task Cannot_Filter_On_DueAfter_With_Value_Greater_Than_DueBefore()
public static IEnumerable<object[]> DueAtTestData()
{
var currentYear = DateTimeOffset.UtcNow.Year;

// The numbers added to "currentYear" here represent future years relative to the current year.
// This is done to create test data for dialogs that are due "soon" (1 to 4 years ahead).
// This approach ensures that the tests remain valid and relevant regardless of the current date.
return new List<object[]>
{
new object[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ public async Task Should_Filter_On_VisibleFrom_Date(DateFilterTestData testData)
public static IEnumerable<object[]> GetVisibleFromTestData()
{
var currentYear = DateTimeOffset.UtcNow.Year;

// The numbers added to "currentYear" here represent future years relative to the current year.
// This is done to create test data for dialogs that are visible "soon" (1 to 4 years ahead).
// This approach ensures that the tests remain valid and relevant regardless of the current date.
return new List<object[]>
{
new object[]
Expand Down

0 comments on commit 906a420

Please sign in to comment.