Refactors the test fixtures and their consumers to compose other fixtures instead of instantiating models inline

This commit is contained in:
BinaryAlley committed 2026-10-02 14:37:23 +03:00
1 parent 0abda472c6
commit 3aadd6de84
157 files changed
+1312 -597

No files matched your search

@@ -230,7 +230,7 @@ public class OpenLibraryBookMetadataProviderTests
public async Task GetSearchResultsAsync_WhenLookupHasNoPath_ShouldThrowArgumentNullException()
{
// Arrange
BookMetadataLookupDto lookup = new(Guid.NewGuid(), null!, Isbn: "978-0-306-40615-7");
BookMetadataLookupDto lookup = _bookMetadataLookupDtoFixture.Create(includePath: false, isbn: "978-0-306-40615-7");
OpenLibraryBookMetadataProvider sut = CreateProvider(new StubOpenLibraryHttpMessageHandler());
// Act