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

@@ -22,6 +22,15 @@ public class BaseEndpointFixture : BaseEndpoint<EmptyRequest, IResult>
/// </summary>
public string TestCulture => Culture;
/// <summary>
/// Sets the <c>Cache-Control</c> header through the <see cref="BaseEndpoint.SetCacheControl(string)"/> helper.
/// </summary>
/// <param name="cacheControl">The <c>Cache-Control</c> value chosen by the endpoint.</param>
public void TestSetCacheControl(string cacheControl)
{
SetCacheControl(cacheControl);
}
/// <summary>
/// Renders a Razor view through the <see cref="BaseEndpoint.View(string, object?, IReadOnlyDictionary{string, object?})"/> helper.
/// </summary>