Adapts the tests and fixtures to the refactored domain and persistence layers

This commit is contained in:
BinaryAlley committed 2026-09-20 01:35:14 +03:00
1 parent e6f0c63feb
commit ef913f5c9e
99 files changed
+612 -171

No files matched your search

@@ -136,7 +136,7 @@ public class BookTests
Assert.Equal(sourceBook.Path, book.Path);
Assert.Equal(sourceBook.Metadata, book.Metadata);
Assert.Equal(createdOnUtc, book.CreatedOnUtc);
Assert.Equal(updatedOnUtc, book.UpdatedOnUtc);
Assert.Equal(Optional<DateTime>.Some(updatedOnUtc), book.UpdatedOnUtc);
Assert.Equal(sourceBook.ISBNs, book.ISBNs);
Assert.Equal(sourceBook.Ratings, book.Ratings);
}
@@ -48,7 +48,7 @@ public class IsbnTests
public void Create_WhenValueIsNullOrWhitespace_ShouldReturnError(string? value)
{
// Act
Result<Isbn> result = Isbn.Create(value, IsbnFormat.Isbn10);
Result<Isbn> result = Isbn.Create(value!, IsbnFormat.Isbn10);
// Assert
Assert.True(result.IsFailure);