mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-02 13:01:10 +00:00
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:
1 parent
468f1846f1
commit
394f6b510c
135 files changed
+19167
-13
No files matched your search
@@ -10,6 +10,11 @@ namespace Lumina.Domain.SharedKernel.Common.Enums.Favorites;
|
||||
[DebuggerDisplay("{ToString()}")]
|
||||
public enum FavoriteMediaKind
|
||||
{
|
||||
/// <summary>
|
||||
/// No media kind. Used as the default value; it is not a kind that can be marked as a favorite.
|
||||
/// </summary>
|
||||
None = 0,
|
||||
|
||||
/// <summary>
|
||||
/// A favorite that references an artist of a music library.
|
||||
/// </summary>
|
||||
|
||||
Reference in new issue
Block a user