Covers the SSD content setting with tests

Adds domain, mapping, endpoint, persistence, discovery, and hashing coverage, including parallel and sequential read behavior.
This commit is contained in:
BinaryAlley committed 2026-10-30 22:40:41 +02:00
1 parent fc800afe03
commit 45c1d1bd44
21 files changed
+354 -22

No files matched your search

@@ -87,6 +87,7 @@ public class AddLibraryEndpointTests
{
// Arrange
AddLibraryRequest request = _addLibraryRequestFixture.Create(
isContentOnSsd: true,
shouldTrackConsumptionProgress: true,
completionThresholdPercentage: 65);
CancellationToken cancellationToken = CancellationToken.None;
@@ -108,6 +109,7 @@ public class AddLibraryEndpointTests
command.CanDownloadMetadataFromWeb == request.CanDownloadMetadataFromWeb &&
command.ShouldSaveMetadataInMediaDirectories == request.ShouldSaveMetadataInMediaDirectories &&
command.ShouldSkipUnchangedDirectoriesDuringScan == request.ShouldSkipUnchangedDirectoriesDuringScan &&
command.IsContentOnSsd == request.IsContentOnSsd &&
command.ShouldTrackConsumptionProgress == request.ShouldTrackConsumptionProgress &&
command.CompletionThresholdPercentage == request.CompletionThresholdPercentage),
Arg.Is(cancellationToken));
@@ -87,6 +87,7 @@ public class UpdateLibraryEndpointTests
{
// Arrange
UpdateLibraryRequest request = _updateLibraryRequestFixture.Create(
isContentOnSsd: true,
shouldTrackConsumptionProgress: true,
completionThresholdPercentage: 65);
CancellationToken cancellationToken = CancellationToken.None;
@@ -110,6 +111,7 @@ public class UpdateLibraryEndpointTests
command.CanDownloadMetadataFromWeb == request.CanDownloadMetadataFromWeb &&
command.ShouldSaveMetadataInMediaDirectories == request.ShouldSaveMetadataInMediaDirectories &&
command.ShouldSkipUnchangedDirectoriesDuringScan == request.ShouldSkipUnchangedDirectoriesDuringScan &&
command.IsContentOnSsd == request.IsContentOnSsd &&
command.ShouldTrackConsumptionProgress == request.ShouldTrackConsumptionProgress &&
command.CompletionThresholdPercentage == request.CompletionThresholdPercentage),
Arg.Is(cancellationToken));