Reformat and apply Stylecop rules

This commit is contained in:
ta264
2019-12-22 22:08:53 +00:00
committed by Qstick
parent d4fa9b7345
commit f02fa629cc
1186 changed files with 7105 additions and 5616 deletions
@@ -1,12 +1,12 @@
using System.Collections.Generic;
using System.Linq;
using System.Net;
using FluentAssertions;
using NLog;
using Radarr.Http.REST;
using Radarr.Http;
using NzbDrone.Common.Serializer;
using Radarr.Http;
using Radarr.Http.REST;
using RestSharp;
using System.Linq;
namespace NzbDrone.Integration.Test.Client
{
@@ -60,7 +60,8 @@ namespace NzbDrone.Integration.Test.Client
return response.Content;
}
public T Execute<T>(IRestRequest request, HttpStatusCode statusCode) where T : class, new()
public T Execute<T>(IRestRequest request, HttpStatusCode statusCode)
where T : class, new()
{
var content = Execute(request, statusCode);
@@ -83,7 +84,6 @@ namespace NzbDrone.Integration.Test.Client
public ClientBase(IRestClient restClient, string apiKey, string resource = null)
: base(restClient, apiKey, resource ?? new TResource().ResourceName)
{
}
public List<TResource> All()
@@ -161,19 +161,22 @@ namespace NzbDrone.Integration.Test.Client
return Put<object>(request, statusCode);
}
public T Get<T>(IRestRequest request, HttpStatusCode statusCode = HttpStatusCode.OK) where T : class, new()
public T Get<T>(IRestRequest request, HttpStatusCode statusCode = HttpStatusCode.OK)
where T : class, new()
{
request.Method = Method.GET;
return Execute<T>(request, statusCode);
}
public T Post<T>(IRestRequest request, HttpStatusCode statusCode = HttpStatusCode.Created) where T : class, new()
public T Post<T>(IRestRequest request, HttpStatusCode statusCode = HttpStatusCode.Created)
where T : class, new()
{
request.Method = Method.POST;
return Execute<T>(request, statusCode);
}
public T Put<T>(IRestRequest request, HttpStatusCode statusCode = HttpStatusCode.Accepted) where T : class, new()
public T Put<T>(IRestRequest request, HttpStatusCode statusCode = HttpStatusCode.Accepted)
where T : class, new()
{
request.Method = Method.PUT;
return Execute<T>(request, statusCode);