Implements tests for commit 525ac1348d

Covers the favorites feature and the playlist and favorite pagination changes with unit, integration and security tests, and fixtures for the new request, response, DTO and entity types.

Also fixes the issues found while covering the commit: declares FavoriteMediaKind.None as the default value and rejects it in every favorite operation; queues the favorite added domain event only after the persisted favorite is read back; and preserves the private, no-store cache header on view pages after the antiforgery and session middlewares overwrite it.
This commit is contained in:
BinaryAlley committed 2026-10-29 10:13:57 +02:00
1 parent 468f1846f1
commit 394f6b510c
135 files changed
+19167 -13

No files matched your search

+2
View File
@@ -97,6 +97,8 @@ public class Program
app.UseApiExceptionHandling(); // handle any problem details returned by the API
app.UseRouting();
app.UseRequestLocalization(); // set the culture from the localized routes
// restore the Cache-Control chosen by the endpoint after the antiforgery and session middlewares overwrite it
app.UseCacheControlHeader();
app.UseSession();
app.UseAuthentication();
app.UseAuthorization();