mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-26 20:11:49 +02:00
added commands.
they can be triggered using the api api/command/
This commit is contained in:
@@ -6,6 +6,7 @@ using NLog.Targets;
|
||||
using NUnit.Framework;
|
||||
using Nancy.Hosting.Self;
|
||||
using NzbDrone.Api;
|
||||
using NzbDrone.Api.Commands;
|
||||
using NzbDrone.Api.RootFolders;
|
||||
using NzbDrone.Common;
|
||||
using NzbDrone.Core.Datastore;
|
||||
@@ -29,6 +30,7 @@ namespace NzbDrone.Integration.Test
|
||||
|
||||
protected SeriesClient Series;
|
||||
protected ClientBase<RootFolderResource> RootFolders;
|
||||
protected ClientBase<CommandResource> Commands;
|
||||
|
||||
static IntegrationTest()
|
||||
{
|
||||
@@ -84,6 +86,7 @@ namespace NzbDrone.Integration.Test
|
||||
RestClient = new RestClient(url + "/api/");
|
||||
Series = new SeriesClient(RestClient);
|
||||
RootFolders = new ClientBase<RootFolderResource>(RestClient);
|
||||
Commands = new ClientBase<CommandResource>(RestClient);
|
||||
|
||||
_host.Start();
|
||||
}
|
||||
@@ -96,4 +99,5 @@ namespace NzbDrone.Integration.Test
|
||||
_bootstrapper.Shutdown();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user