mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 16:11:10 +00:00
Refactors the get book slice
This commit is contained in:
1 parent
1d35cd01db
commit
8aaf9fe64e
17 files changed
+395
-347
No files matched your search
+5
-3
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user