Fixed some unit tests (not sure when they broke)

This commit is contained in:
Joseph Milazzo 2025-06-20 13:52:44 -05:00
parent 19be1193a1
commit 0d856d10e3
2 changed files with 8 additions and 2 deletions

View file

@ -56,6 +56,12 @@ public static class RestrictByAgeExtensions
sm.Metadata.AgeRating <= restriction.AgeRating && sm.Metadata.AgeRating > AgeRating.Unknown));
}
/// <summary>
/// Returns all Genres where any of the linked Series/Chapters are less than or equal to restriction age rating
/// </summary>
/// <param name="queryable"></param>
/// <param name="restriction"></param>
/// <returns></returns>
public static IQueryable<Genre> RestrictAgainstAgeRestriction(this IQueryable<Genre> queryable, AgeRestriction restriction)
{
if (restriction.AgeRating == AgeRating.NotApplicable) return queryable;