Skip to content

Commit

Permalink
fix: Make test stable
Browse files Browse the repository at this point in the history
  • Loading branch information
linkdotnet committed Mar 28, 2024
1 parent d9ddb0f commit a05a5c3
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ public async Task ShouldMergeRecordsWhenThereAreAlreadyEntries()

// Assert
var records = await blogPostRecordRepository.GetAllAsync();
records.Count.Should().Be(3);
records[0].Clicks.Should().Be(1);
records[1].Clicks.Should().Be(3);
records[2].Clicks.Should().Be(1);
var datesToClicks = records.ToDictionary(s => s.DateClicked, bp => bp.Clicks);
datesToClicks[someDate.AddDays(-1)].Should().Be(1);
datesToClicks[someDate].Should().Be(3);
datesToClicks[someDate.AddDays(1)].Should().Be(1);
}
}

0 comments on commit a05a5c3

Please sign in to comment.