You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
recyclarr/src/Recyclarr.TrashLib.TestLibrary/CfTestUtils.cs

17 lines
568 B

using Recyclarr.TrashLib.Services.CustomFormat.Models;
namespace Recyclarr.TrashLib.TestLibrary;
public static class CfTestUtils
{
public static QualityProfileCustomFormatScoreMapping NewMapping(params FormatMappingEntry[] entries)
{
return new QualityProfileCustomFormatScoreMapping(false) {Mapping = entries.ToList()};
}
public static QualityProfileCustomFormatScoreMapping NewMappingWithReset(params FormatMappingEntry[] entries)
{
return new QualityProfileCustomFormatScoreMapping(true) {Mapping = entries.ToList()};
}
}