");
+
+ foreach (var imagePath in imageFiles)
+ {
+ var fileName = Path.GetFileNameWithoutExtension(imagePath);
+ var primaryPath = Path.Combine(_testDirectoryColorScapes, $"{fileName}_primary_output.png");
+ var secondaryPath = Path.Combine(_testDirectoryColorScapes, $"{fileName}_secondary_output.png");
+
+ htmlBuilder.AppendLine("
");
+ htmlBuilder.AppendLine($"
{fileName}
");
+ htmlBuilder.AppendLine($"
");
+ if (File.Exists(primaryPath))
+ {
+ htmlBuilder.AppendLine($"
");
+ }
+ if (File.Exists(secondaryPath))
+ {
+ htmlBuilder.AppendLine($"
");
+ }
+ htmlBuilder.AppendLine("
");
+ }
+
+ htmlBuilder.AppendLine("
");
+ htmlBuilder.AppendLine("");
+ htmlBuilder.AppendLine("");
+
+ File.WriteAllText(Path.Combine(_testDirectoryColorScapes, "colorscape_index.html"), htmlBuilder.ToString());
+ }
}
diff --git a/API.Tests/Services/ReadingListServiceTests.cs b/API.Tests/Services/ReadingListServiceTests.cs
index 80e36dadca..96a3effa45 100644
--- a/API.Tests/Services/ReadingListServiceTests.cs
+++ b/API.Tests/Services/ReadingListServiceTests.cs
@@ -52,7 +52,9 @@ public ReadingListServiceTests()
var mapper = config.CreateMapper();
_unitOfWork = new UnitOfWork(_context, mapper, null!);
- _readingListService = new ReadingListService(_unitOfWork, Substitute.For