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.
43 lines
1.0 KiB
43 lines
1.0 KiB
1 year ago
|
using Recyclarr.TrashGuide.CustomFormat;
|
||
2 years ago
|
|
||
1 year ago
|
namespace Recyclarr.Tests.TestLibrary;
|
||
2 years ago
|
|
||
|
public static class NewCf
|
||
|
{
|
||
2 years ago
|
public static CustomFormatData DataWithScore(string name, string trashId, int score, int id = 0)
|
||
2 years ago
|
{
|
||
2 years ago
|
return new CustomFormatData
|
||
2 years ago
|
{
|
||
2 years ago
|
Id = id,
|
||
|
Name = name,
|
||
|
TrashId = trashId,
|
||
1 year ago
|
TrashScores = {["default"] = score}
|
||
2 years ago
|
};
|
||
|
}
|
||
|
|
||
1 year ago
|
public static CustomFormatData DataWithScores(
|
||
|
string name,
|
||
|
string trashId,
|
||
|
int id,
|
||
|
params (string ScoreSet, int Score)[] scores)
|
||
|
{
|
||
|
return new CustomFormatData
|
||
|
{
|
||
|
Id = id,
|
||
|
Name = name,
|
||
|
TrashId = trashId,
|
||
|
TrashScores = scores.ToDictionary(x => x.ScoreSet, x => x.Score)
|
||
|
};
|
||
|
}
|
||
|
|
||
2 years ago
|
public static CustomFormatData Data(string name, string trashId, int id = 0)
|
||
2 years ago
|
{
|
||
2 years ago
|
return new CustomFormatData
|
||
2 years ago
|
{
|
||
2 years ago
|
Id = id,
|
||
|
Name = name,
|
||
|
TrashId = trashId
|
||
2 years ago
|
};
|
||
|
}
|
||
|
}
|