2013-04-21 14:04:09 -07:00
|
|
|
using System;
|
|
|
|
using NUnit.Framework;
|
2013-04-24 21:27:49 -07:00
|
|
|
using NzbDrone.Api.Config;
|
2013-04-21 14:04:09 -07:00
|
|
|
using NzbDrone.Api.Episodes;
|
2013-05-03 08:23:31 -07:00
|
|
|
using NzbDrone.Api.History;
|
2013-04-27 17:50:49 -07:00
|
|
|
using NzbDrone.Api.Indexers;
|
2013-04-21 14:04:09 -07:00
|
|
|
using NzbDrone.Api.Mapping;
|
2013-04-21 20:18:08 -07:00
|
|
|
using NzbDrone.Api.RootFolders;
|
2013-04-21 14:04:09 -07:00
|
|
|
using NzbDrone.Api.Series;
|
2013-05-19 17:30:02 -07:00
|
|
|
using NzbDrone.Api.Update;
|
2013-04-28 12:46:13 -07:00
|
|
|
using NzbDrone.Core.DecisionEngine;
|
2013-04-27 17:25:28 -07:00
|
|
|
using NzbDrone.Core.Indexers;
|
2013-04-24 21:27:49 -07:00
|
|
|
using NzbDrone.Core.Organizer;
|
2013-04-28 12:46:13 -07:00
|
|
|
using NzbDrone.Core.Parser.Model;
|
2013-04-21 20:18:08 -07:00
|
|
|
using NzbDrone.Core.RootFolders;
|
2013-05-19 17:30:02 -07:00
|
|
|
using NzbDrone.Core.Update;
|
2013-04-21 14:04:09 -07:00
|
|
|
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))]
|
2013-04-21 20:18:08 -07:00
|
|
|
[TestCase(typeof(RootFolder), typeof(RootFolderResource))]
|
2013-04-24 21:27:49 -07:00
|
|
|
[TestCase(typeof(NamingConfig), typeof(NamingConfigResource))]
|
2013-05-02 16:06:08 -07:00
|
|
|
[TestCase(typeof(Indexer), typeof(IndexerResource))]
|
2013-04-28 12:46:13 -07:00
|
|
|
[TestCase(typeof(ReportInfo), typeof(ReleaseResource))]
|
|
|
|
[TestCase(typeof(ParsedEpisodeInfo), typeof(ReleaseResource))]
|
|
|
|
[TestCase(typeof(DownloadDecision), typeof(ReleaseResource))]
|
2013-05-03 08:23:31 -07:00
|
|
|
[TestCase(typeof(Core.History.History), typeof(HistoryResource))]
|
2013-05-19 17:30:02 -07:00
|
|
|
[TestCase(typeof(UpdatePackage), typeof(UpdateResource))]
|
2013-04-21 14:04:09 -07:00
|
|
|
public void matching_fields(Type modelType, Type resourceType)
|
|
|
|
{
|
|
|
|
MappingValidation.ValidateMapping(modelType, resourceType);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|