2013-04-22 00:04:09 +03:00
|
|
|
using System;
|
|
|
|
using NUnit.Framework;
|
|
|
|
using NzbDrone.Api.Episodes;
|
|
|
|
using NzbDrone.Api.Mapping;
|
2013-04-22 06:18:08 +03:00
|
|
|
using NzbDrone.Api.RootFolders;
|
2013-04-22 00:04:09 +03:00
|
|
|
using NzbDrone.Api.Series;
|
2013-04-22 06:18:08 +03:00
|
|
|
using NzbDrone.Core.RootFolders;
|
2013-04-22 00:04:09 +03: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-22 06:18:08 +03:00
|
|
|
[TestCase(typeof(RootFolder), typeof(RootFolderResource))]
|
2013-04-22 00:04:09 +03:00
|
|
|
public void matching_fields(Type modelType, Type resourceType)
|
|
|
|
{
|
|
|
|
MappingValidation.ValidateMapping(modelType, resourceType);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|