|
|
@ -5,6 +5,7 @@ using NzbDrone.Api.Episodes;
|
|
|
|
using NzbDrone.Api.Mapping;
|
|
|
|
using NzbDrone.Api.Mapping;
|
|
|
|
using NzbDrone.Api.RootFolders;
|
|
|
|
using NzbDrone.Api.RootFolders;
|
|
|
|
using NzbDrone.Api.Series;
|
|
|
|
using NzbDrone.Api.Series;
|
|
|
|
|
|
|
|
using NzbDrone.Core.Indexers;
|
|
|
|
using NzbDrone.Core.Organizer;
|
|
|
|
using NzbDrone.Core.Organizer;
|
|
|
|
using NzbDrone.Core.RootFolders;
|
|
|
|
using NzbDrone.Core.RootFolders;
|
|
|
|
using NzbDrone.Test.Common;
|
|
|
|
using NzbDrone.Test.Common;
|
|
|
@ -18,6 +19,7 @@ namespace NzbDrone.Api.Test.MappingTests
|
|
|
|
[TestCase(typeof(Core.Tv.Episode), typeof(EpisodeResource))]
|
|
|
|
[TestCase(typeof(Core.Tv.Episode), typeof(EpisodeResource))]
|
|
|
|
[TestCase(typeof(RootFolder), typeof(RootFolderResource))]
|
|
|
|
[TestCase(typeof(RootFolder), typeof(RootFolderResource))]
|
|
|
|
[TestCase(typeof(NamingConfig), typeof(NamingConfigResource))]
|
|
|
|
[TestCase(typeof(NamingConfig), typeof(NamingConfigResource))]
|
|
|
|
|
|
|
|
[TestCase(typeof(IndexerDefinition), typeof(IndexerRepository))]
|
|
|
|
public void matching_fields(Type modelType, Type resourceType)
|
|
|
|
public void matching_fields(Type modelType, Type resourceType)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
MappingValidation.ValidateMapping(modelType, resourceType);
|
|
|
|
MappingValidation.ValidateMapping(modelType, resourceType);
|
|
|
|