1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-24 22:36:19 -04:00

Added naming integration tests

This commit is contained in:
Mark McDowall
2013-11-16 00:54:51 -08:00
parent 2e694485fe
commit fbf91fe8f5
2 changed files with 46 additions and 1 deletions
@@ -87,6 +87,13 @@ namespace NzbDrone.Integration.Test.Client
return Post<List<dynamic>>(request, HttpStatusCode.BadRequest);
}
public List<dynamic> InvalidPut(TResource body)
{
var request = BuildRequest();
request.AddBody(body);
return Put<List<dynamic>>(request, HttpStatusCode.BadRequest);
}
public RestRequest BuildRequest(string command = "")
{
var request = new RestRequest(_resource + "/" + command.Trim('/'))