mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 07: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
+5
-5
@@ -48,9 +48,9 @@ public class LibraryMappingTests
|
||||
Assert.Equal(library.Title, result.Title);
|
||||
Assert.Equal(library.LibraryType, result.LibraryType);
|
||||
Assert.Equal(library.ContentLocations.Select(l => l.Path), result.ContentLocations.Select(l => l.Path));
|
||||
Assert.Equal(library.CoverImage, result.CoverImage);
|
||||
Assert.Equal(library.CoverImage.HasValue ? library.CoverImage.Value : null, result.CoverImage);
|
||||
Assert.Equal(library.CreatedOnUtc, result.CreatedOnUtc);
|
||||
Assert.Equal(library.UpdatedOnUtc, result.UpdatedOnUtc);
|
||||
Assert.Equal(library.UpdatedOnUtc.HasValue ? library.UpdatedOnUtc.Value : null, result.UpdatedOnUtc);
|
||||
Assert.True(result.IsEnabled);
|
||||
Assert.False(result.IsLocked);
|
||||
Assert.True(result.CanDownloadMetadataFromWeb);
|
||||
@@ -74,7 +74,7 @@ public class LibraryMappingTests
|
||||
// Assert
|
||||
Assert.NotNull(result);
|
||||
Assert.Empty(result.ContentLocations);
|
||||
Assert.Equal(library.CoverImage, result.CoverImage);
|
||||
Assert.Equal(library.CoverImage.HasValue ? library.CoverImage.Value : null, result.CoverImage);
|
||||
}
|
||||
|
||||
[Theory]
|
||||
@@ -101,7 +101,7 @@ public class LibraryMappingTests
|
||||
// Assert
|
||||
Assert.NotNull(result);
|
||||
Assert.Equal(libraryType, result.LibraryType);
|
||||
Assert.Equal(library.CoverImage, result.CoverImage);
|
||||
Assert.Equal(library.CoverImage.HasValue ? library.CoverImage.Value : null, result.CoverImage);
|
||||
Assert.True(result.IsEnabled);
|
||||
Assert.False(result.IsLocked);
|
||||
Assert.True(result.CanDownloadMetadataFromWeb);
|
||||
@@ -132,7 +132,7 @@ public class LibraryMappingTests
|
||||
// Assert
|
||||
Assert.NotNull(result);
|
||||
Assert.Equal(library.ContentLocations.Select(l => l.Path), result.ContentLocations.Select(l => l.Path));
|
||||
Assert.Equal(library.CoverImage, result.CoverImage);
|
||||
Assert.Equal(library.CoverImage.HasValue ? library.CoverImage.Value : null, result.CoverImage);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
Reference in new issue
Block a user