Adds the media library artwork aggregation services, enrichers, and their provider contracts

This commit is contained in:
BinaryAlley committed 2026-10-09 01:59:00 +03:00
1 parent 00376c8313
commit 9e118864c3
33 files changed
+4621 -1118

No files matched your search

@@ -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);
}
}