mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 08:11:10 +00:00
Adapts the tests and fixtures to the refactored domain and persistence layers
This commit is contained in:
1 parent
e6f0c63feb
commit
ef913f5c9e
99 files changed
+612
-171
No files matched your search
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user