From 119a04918945949f497dfa8dec09cee3314ec2d2 Mon Sep 17 00:00:00 2001 From: Binary Alley Date: Wed, 2 Sep 2026 13:34:01 -0700 Subject: [PATCH] Bounds the generated release years in the book fixture --- .../BookLibraryAggregate/BookFixture.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Common/Lumina.Domain.Fixtures/Core/BoundedContexts/WrittenContentLibraryBoundedContext/BookLibraryAggregate/BookFixture.cs b/tests/Common/Lumina.Domain.Fixtures/Core/BoundedContexts/WrittenContentLibraryBoundedContext/BookLibraryAggregate/BookFixture.cs index 5b4a81cf..3b9873ed 100644 --- a/tests/Common/Lumina.Domain.Fixtures/Core/BoundedContexts/WrittenContentLibraryBoundedContext/BookLibraryAggregate/BookFixture.cs +++ b/tests/Common/Lumina.Domain.Fixtures/Core/BoundedContexts/WrittenContentLibraryBoundedContext/BookLibraryAggregate/BookFixture.cs @@ -84,8 +84,8 @@ public class BookFixture _fixture.Register(() => { - int originalYear = _fixture.Create>().First(year => year >= 1900 && year <= 2025); - int reReleaseYear = _fixture.Create>().First(year => year >= originalYear && year <= 2025); + int originalYear = Random.Shared.Next(1900, 2026); + int reReleaseYear = Random.Shared.Next(originalYear, 2026); return ReleaseInfo.Create( Optional.Some(DateOnly.FromDateTime(new DateTime(originalYear, 1, 1))),