mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 19:21:10 +00:00
Adds the media library artwork aggregation services, enrichers, and their provider contracts
This commit is contained in:
1 parent
00376c8313
commit
9e118864c3
33 files changed
+4621
-1118
No files matched your search
+6
-6
@@ -57,29 +57,29 @@ public class CalibreArtworkProviderTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task GetArtworkAsync_WhenLookupIsNotABookLookup_ShouldReturnNull()
|
||||
public async Task GetArtworkAsync_WhenLookupIsNotABookLookup_ShouldReturnEmpty()
|
||||
{
|
||||
// Arrange
|
||||
MetadataLookupDto lookup = _testMetadataLookupFixture.Create();
|
||||
IArtworkProvider baseProvider = _sut;
|
||||
|
||||
// Act
|
||||
ArtworkDto? result = await baseProvider.GetArtworkAsync(lookup, CancellationToken.None);
|
||||
IReadOnlyList<ArtworkDto> result = await baseProvider.GetArtworkAsync(lookup, CancellationToken.None);
|
||||
|
||||
// Assert
|
||||
Assert.Null(result);
|
||||
Assert.Empty(result);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task GetArtworkAsync_WhenLookupPathIsEmpty_ShouldReturnNull()
|
||||
public async Task GetArtworkAsync_WhenLookupPathIsEmpty_ShouldReturnEmpty()
|
||||
{
|
||||
// Arrange
|
||||
BookMetadataLookupDto lookup = _bookMetadataLookupDtoFixture.Create(path: " ");
|
||||
|
||||
// Act
|
||||
ArtworkDto? result = await _sut.GetArtworkAsync(lookup, CancellationToken.None);
|
||||
IReadOnlyList<ArtworkDto> result = await _sut.GetArtworkAsync(lookup, CancellationToken.None);
|
||||
|
||||
// Assert
|
||||
Assert.Null(result);
|
||||
Assert.Empty(result);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user