|
|
@ -5,6 +5,7 @@ using NzbDrone.Api.Episodes;
|
|
|
|
using NzbDrone.Api.History;
|
|
|
|
using NzbDrone.Api.History;
|
|
|
|
using NzbDrone.Api.Indexers;
|
|
|
|
using NzbDrone.Api.Indexers;
|
|
|
|
using NzbDrone.Api.Mapping;
|
|
|
|
using NzbDrone.Api.Mapping;
|
|
|
|
|
|
|
|
using NzbDrone.Api.Qualities;
|
|
|
|
using NzbDrone.Api.RootFolders;
|
|
|
|
using NzbDrone.Api.RootFolders;
|
|
|
|
using NzbDrone.Api.Series;
|
|
|
|
using NzbDrone.Api.Series;
|
|
|
|
using NzbDrone.Api.Update;
|
|
|
|
using NzbDrone.Api.Update;
|
|
|
@ -12,6 +13,7 @@ using NzbDrone.Core.DecisionEngine;
|
|
|
|
using NzbDrone.Core.Indexers;
|
|
|
|
using NzbDrone.Core.Indexers;
|
|
|
|
using NzbDrone.Core.Organizer;
|
|
|
|
using NzbDrone.Core.Organizer;
|
|
|
|
using NzbDrone.Core.Parser.Model;
|
|
|
|
using NzbDrone.Core.Parser.Model;
|
|
|
|
|
|
|
|
using NzbDrone.Core.Qualities;
|
|
|
|
using NzbDrone.Core.RootFolders;
|
|
|
|
using NzbDrone.Core.RootFolders;
|
|
|
|
using NzbDrone.Core.Update;
|
|
|
|
using NzbDrone.Core.Update;
|
|
|
|
using NzbDrone.Test.Common;
|
|
|
|
using NzbDrone.Test.Common;
|
|
|
@ -31,6 +33,8 @@ namespace NzbDrone.Api.Test.MappingTests
|
|
|
|
[TestCase(typeof(DownloadDecision), typeof(ReleaseResource))]
|
|
|
|
[TestCase(typeof(DownloadDecision), typeof(ReleaseResource))]
|
|
|
|
[TestCase(typeof(Core.History.History), typeof(HistoryResource))]
|
|
|
|
[TestCase(typeof(Core.History.History), typeof(HistoryResource))]
|
|
|
|
[TestCase(typeof(UpdatePackage), typeof(UpdateResource))]
|
|
|
|
[TestCase(typeof(UpdatePackage), typeof(UpdateResource))]
|
|
|
|
|
|
|
|
[TestCase(typeof(QualityProfile), typeof(QualityProfileResource))]
|
|
|
|
|
|
|
|
[TestCase(typeof(Quality), typeof(QualityResource))]
|
|
|
|
public void matching_fields(Type modelType, Type resourceType)
|
|
|
|
public void matching_fields(Type modelType, Type resourceType)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
MappingValidation.ValidateMapping(modelType, resourceType);
|
|
|
|
MappingValidation.ValidateMapping(modelType, resourceType);
|
|
|
|