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))),