Refactors the get book slice

This commit is contained in:
BinaryAlley committed 2026-09-13 06:58:32 -07:00
1 parent 1d35cd01db
commit 8aaf9fe64e
17 files changed
+395 -347

No files matched your search

@@ -17,12 +17,14 @@ public class GetBookQueryFixture
/// <summary>
/// Creates a random valid <see cref="GetBookQuery"/>.
/// </summary>
/// <param name="id">Optional. The Id of the book to get.</param>
/// <param name="libraryId">Optional. The Id of the library the book belongs to.</param>
/// <param name="bookId">Optional. The Id of the book to get.</param>
/// <returns>The created <see cref="GetBookQuery"/>.</returns>
public GetBookQuery Create(
Guid? id = null)
string? libraryId = null,
string? bookId = null)
{
return new GetBookQuery(id ?? Guid.NewGuid());
return new GetBookQuery(libraryId ?? Guid.NewGuid().ToString(), bookId ?? Guid.NewGuid().ToString());
}
/// <summary>