Lidarr/NzbDrone.Api.Test/MappingTests/ResourceMappingFixture.cs

35 lines
1.2 KiB
C#
Raw Normal View History

using System;
using NUnit.Framework;
2013-04-25 04:27:49 +00:00
using NzbDrone.Api.Config;
using NzbDrone.Api.Episodes;
2013-04-28 00:50:49 +00:00
using NzbDrone.Api.Indexers;
using NzbDrone.Api.Mapping;
using NzbDrone.Api.RootFolders;
using NzbDrone.Api.Series;
using NzbDrone.Core.DecisionEngine;
using NzbDrone.Core.Indexers;
2013-04-25 04:27:49 +00:00
using NzbDrone.Core.Organizer;
using NzbDrone.Core.Parser.Model;
using NzbDrone.Core.RootFolders;
using NzbDrone.Test.Common;
namespace NzbDrone.Api.Test.MappingTests
{
[TestFixture]
public class ResourceMappingFixture : TestBase
{
[TestCase(typeof(Core.Tv.Series), typeof(SeriesResource))]
[TestCase(typeof(Core.Tv.Episode), typeof(EpisodeResource))]
[TestCase(typeof(RootFolder), typeof(RootFolderResource))]
2013-04-25 04:27:49 +00:00
[TestCase(typeof(NamingConfig), typeof(NamingConfigResource))]
2013-04-28 00:50:49 +00:00
[TestCase(typeof(IndexerDefinition), typeof(IndexerResource))]
[TestCase(typeof(ReportInfo), typeof(ReleaseResource))]
[TestCase(typeof(ParsedEpisodeInfo), typeof(ReleaseResource))]
[TestCase(typeof(DownloadDecision), typeof(ReleaseResource))]
public void matching_fields(Type modelType, Type resourceType)
{
MappingValidation.ValidateMapping(modelType, resourceType);
}
}
}