Skip to content

Commit

Permalink
Set UpdatedAt, not just DeletedAt.
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTedder committed Oct 23, 2024
1 parent 42f9ade commit 6f2fe7d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion LeaderboardBackend.Test/Leaderboards.cs
Original file line number Diff line number Diff line change
Expand Up @@ -423,12 +423,14 @@ await FluentActions.Awaiting(() => _apiClient.Delete(
public async Task DeleteLeaderboard_AlreadyDeleted()
{
ApplicationContext context = _factory.Services.CreateScope().ServiceProvider.GetRequiredService<ApplicationContext>();
Instant now = _clock.GetCurrentInstant();

Leaderboard lb = new()
{
Name = "The Elder Scrolls V: Skyrim",
Slug = "tesv-skyrim",
DeletedAt = _clock.GetCurrentInstant()
UpdatedAt = now,
DeletedAt = now
};

context.Leaderboards.Add(lb);
Expand Down

0 comments on commit 6f2fe7d

Please sign in to comment.