mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 12:11:10 +00:00
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:
1 parent
fc800afe03
commit
45c1d1bd44
21 files changed
+354
-22
No files matched your search
+2
@@ -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));
|
||||
|
||||
+2
@@ -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));
|
||||
|
||||
Reference in new issue
Block a user