From e2128d223539da3f817aa914f8d74511f9399d60 Mon Sep 17 00:00:00 2001 From: Keivan Date: Mon, 27 Sep 2010 20:40:01 -0700 Subject: [PATCH] Merged Mark's fork in --- NzbDrone.Core.Test/Files/Queue.xml | 115 ++++++++++ NzbDrone.Core.Test/Files/QueueEmpty.xml | 94 +++++++++ NzbDrone.Core.Test/Files/QueueError.txt | 4 + NzbDrone.Core.Test/NzbDrone.Core.Test.csproj | 11 + NzbDrone.Core.Test/SabControllerTest.cs | 199 ++++++++++++++++++ NzbDrone.Core/Controllers/HttpController.cs | 27 +++ .../Controllers/IDownloadClientController.cs | 5 +- NzbDrone.Core/Controllers/IHttpController.cs | 12 ++ NzbDrone.Core/Controllers/SabController.cs | 71 ++++++- NzbDrone.Core/NzbDrone.Core.csproj | 8 + NzbDrone.Core/Repository/Episode.cs | 127 +++++++++++ NzbDrone.Core/Repository/FeedItem.cs | 16 ++ NzbDrone.Core/Repository/ItemInfo.cs | 21 ++ NzbDrone.Core/Repository/Site.cs | 36 ++++ 14 files changed, 736 insertions(+), 10 deletions(-) create mode 100644 NzbDrone.Core.Test/Files/Queue.xml create mode 100644 NzbDrone.Core.Test/Files/QueueEmpty.xml create mode 100644 NzbDrone.Core.Test/Files/QueueError.txt create mode 100644 NzbDrone.Core.Test/SabControllerTest.cs create mode 100644 NzbDrone.Core/Controllers/HttpController.cs create mode 100644 NzbDrone.Core/Controllers/IHttpController.cs create mode 100644 NzbDrone.Core/Repository/Episode.cs create mode 100644 NzbDrone.Core/Repository/FeedItem.cs create mode 100644 NzbDrone.Core/Repository/ItemInfo.cs create mode 100644 NzbDrone.Core/Repository/Site.cs diff --git a/NzbDrone.Core.Test/Files/Queue.xml b/NzbDrone.Core.Test/Files/Queue.xml new file mode 100644 index 000000000..82afab54f --- /dev/null +++ b/NzbDrone.Core.Test/Files/Queue.xml @@ -0,0 +1,115 @@ + +us-en +5c770e3197e4fe763423ee7c392c25d1 +Queued +0 +unknown +0:00:00 +11h + + + + +770.96 +770.96 MB +Ubuntu Test +Normal +None +770.96 +0 +SABnzbd_nzo_xyr5ak + +3 +770.96 MB + + +0 +770.96 MB +0 +0 +259.45 +False + + +0 +1 +0 +None +anime +apps +books +consoles + +ds-games +emulation +games +misc +movies +music +pda +resources +test + +tv +tv-dvd +unknown +wii-games +xbox-dlc +xbox-xbla + +259.45 +770.96 + + +157286400 + +C:\Program Files\SABnzbd\interfaces\Plush\templates +True +False +False +True +http://wiki.sabnzbd.org/ +4d + + +0.6.x + + +True +Paused +0 +0 +False + +770.96 MB + +0B +770.96 +1177.64 +1177.64 + + + + + + + + + + + + + + + + + + + +0:00:00 + +unknown +0.00 + +0 + \ No newline at end of file diff --git a/NzbDrone.Core.Test/Files/QueueEmpty.xml b/NzbDrone.Core.Test/Files/QueueEmpty.xml new file mode 100644 index 000000000..3fc093842 --- /dev/null +++ b/NzbDrone.Core.Test/Files/QueueEmpty.xml @@ -0,0 +1,94 @@ + +us-en +5c770e3197e4fe763423ee7c392c25d1 + +0 +0B +0 +0 +259.45 +False + + +0 +0 +0 +None +anime +apps +books +consoles + +ds-games +emulation +games +misc +movies +music +pda +resources +test + +tv +tv-dvd +unknown +wii-games +xbox-dlc +xbox-xbla + +259.45 +0.00 + + +157286400 + +C:\Program Files\SABnzbd\interfaces\Plush\templates +False +False +False +True +http://wiki.sabnzbd.org/ +4d + + +0.6.x + + +True +Idle +0 +0 +False + +0B + +0B +0.00 +1177.64 +1177.64 + + + + + + + + + + + + + + + + + + + +0:00:00 + +unknown +0.00 + +0 + \ No newline at end of file diff --git a/NzbDrone.Core.Test/Files/QueueError.txt b/NzbDrone.Core.Test/Files/QueueError.txt new file mode 100644 index 000000000..3079b7cfd --- /dev/null +++ b/NzbDrone.Core.Test/Files/QueueError.txt @@ -0,0 +1,4 @@ + +False +API Key Incorrect + \ No newline at end of file diff --git a/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj b/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj index 50208906e..0d828f979 100644 --- a/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj +++ b/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj @@ -72,6 +72,7 @@ + @@ -85,7 +86,17 @@ + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + +