mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 18:57:39 -07:00
added resource mapping validation tests
This commit is contained in:
parent
1d49435675
commit
c3214a2e88
17 changed files with 297 additions and 76 deletions
|
@ -40,7 +40,7 @@ namespace NzbDrone.Api.REST
|
|||
Get[ID_ROUTE] = options =>
|
||||
{
|
||||
EnsureImplementation(GetResourceById);
|
||||
var resource = GetResourceById(options.Id);
|
||||
var resource = GetResourceById((int)options.Id);
|
||||
return resource.AsResponse();
|
||||
};
|
||||
|
||||
|
@ -61,7 +61,7 @@ namespace NzbDrone.Api.REST
|
|||
Delete[ID_ROUTE] = options =>
|
||||
{
|
||||
EnsureImplementation(DeleteResource);
|
||||
DeleteResource(options.Id);
|
||||
DeleteResource((int)options.Id);
|
||||
return new Response { StatusCode = HttpStatusCode.OK };
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue