Implements tests for commit 00d7eff777

Covers genre consumption and delete-item-history across application, contracts, API, and Web. Changes the new string-bound request pipelines to return validation problems instead of 500 for malformed values.
This commit is contained in:
BinaryAlley committed 2026-10-28 12:27:34 +02:00
1 parent 968061e89a
commit 1afb078efc
91 files changed
+14499 -50

No files matched your search

@@ -1,6 +1,4 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Domain.SharedKernel.Common.Enums.MediaLibrary;
using System;
using System.Diagnostics;
#endregion
@@ -9,12 +7,12 @@ namespace Lumina.Contracts.Requests.MediaConsumption;
/// <summary>
/// Represents a request to delete every consumption record of a media item.
/// </summary>
/// <param name="MediaKind">The kind of the consumed media item.</param>
/// <param name="MediaItemId">The Id of the consumed media item.</param>
/// <param name="LibraryId">The Id of the media library that contains the media item.</param>
/// <param name="MediaKind">The name of the kind of the consumed media item, taken from the route.</param>
/// <param name="MediaItemId">The Id of the consumed media item, taken from the route.</param>
/// <param name="LibraryId">The Id of the media library that contains the media item, taken from the route.</param>
[DebuggerDisplay("MediaKind: {MediaKind}; MediaItemId: {MediaItemId}; LibraryId: {LibraryId}")]
public sealed record DeleteConsumptionItemHistoryRequest(
MediaKind MediaKind,
Guid MediaItemId,
Guid LibraryId
string? MediaKind,
string? MediaItemId,
string? LibraryId
);
@@ -1,6 +1,4 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Domain.SharedKernel.Common.Enums.MediaLibrary;
using System;
using System.Diagnostics;
#endregion
@@ -10,13 +8,13 @@ namespace Lumina.Contracts.Requests.MediaConsumption;
/// Represents a request for getting the consumption statistics of the genres of a user.
/// </summary>
/// <param name="LibraryId">The Id of the media library to restrict the statistics to. Optional.</param>
/// <param name="MediaKind">The kind of media to restrict the statistics to. Optional.</param>
/// <param name="FromUtc">The inclusive start of the date range. Optional.</param>
/// <param name="ToUtc">The inclusive end of the date range. Optional.</param>
/// <param name="MediaKind">The name of the kind of media to restrict the statistics to. Optional.</param>
/// <param name="FromUtc">The inclusive start of the date range, in UTC, as a text value. Optional.</param>
/// <param name="ToUtc">The inclusive end of the date range, in UTC, as a text value. Optional.</param>
[DebuggerDisplay("MediaKind: {MediaKind}; FromUtc: {FromUtc}; ToUtc: {ToUtc}")]
public sealed record GetGenreConsumptionRequest(
string? LibraryId,
MediaKind? MediaKind,
DateTime? FromUtc,
DateTime? ToUtc
string? MediaKind,
string? FromUtc,
string? ToUtc
);