core: rearrange test classes (#10023)

This commit is contained in:
Diego Heras
2020-10-31 01:12:35 +01:00
committed by GitHub
parent 3d27e18b87
commit 15ea7ed9f9
16 changed files with 337 additions and 169 deletions

View File

@@ -583,9 +583,11 @@ namespace Jackett.Common.Indexers
protected void AddCategoryMapping(string trackerCategory, TorznabCategory newznabCategory, string trackerCategoryDesc = null) =>
TorznabCaps.Categories.AddCategoryMapping(trackerCategory, newznabCategory, trackerCategoryDesc);
// TODO: remove this method ?
protected void AddCategoryMapping(int trackerCategory, TorznabCategory newznabCategory, string trackerCategoryDesc = null) =>
AddCategoryMapping(trackerCategory.ToString(), newznabCategory, trackerCategoryDesc);
// TODO: remove this method and use AddCategoryMapping instead. this method doesn't allow to create custom cats
protected void AddMultiCategoryMapping(TorznabCategory newznabCategory, params int[] trackerCategories)
{
foreach (var trackerCat in trackerCategories)