mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 10:36:54 -07:00
Finished #415
This commit is contained in:
parent
2aebbe0259
commit
7db336e202
19 changed files with 229 additions and 89 deletions
|
@ -61,6 +61,12 @@ namespace PlexRequests.Helpers.Tests
|
|||
return PlexHelper.GetSeasonNumberFromTitle(title);
|
||||
}
|
||||
|
||||
[TestCaseSource(nameof(MediaUrls))]
|
||||
public string GetPlexMediaUrlTest(string machineId, string mediaId)
|
||||
{
|
||||
return PlexHelper.GetPlexMediaUrl(machineId, mediaId);
|
||||
}
|
||||
|
||||
private static IEnumerable<TestCaseData> PlexGuids
|
||||
{
|
||||
get
|
||||
|
@ -75,6 +81,15 @@ namespace PlexRequests.Helpers.Tests
|
|||
}
|
||||
}
|
||||
|
||||
private static IEnumerable<TestCaseData> MediaUrls
|
||||
{
|
||||
get
|
||||
{
|
||||
yield return new TestCaseData("abcd","99").Returns("https://app.plex.tv/web/app#!/server/abcd/details/%2Flibrary%2Fmetadata%2F99").SetName("Test 1");
|
||||
yield return new TestCaseData("a54d1db669799308cd704b791f331eca6648b952", "51").Returns("https://app.plex.tv/web/app#!/server/a54d1db669799308cd704b791f331eca6648b952/details/%2Flibrary%2Fmetadata%2F51").SetName("Test 2");
|
||||
}
|
||||
}
|
||||
|
||||
private static IEnumerable<TestCaseData> SeasonNumbers
|
||||
{
|
||||
get
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue