mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
Added AutoMoq. Removed IHTTP Provider
This commit is contained in:
parent
9950d9385d
commit
c1bd62ae64
42 changed files with 34563 additions and 118 deletions
|
@ -5,11 +5,11 @@ using NLog;
|
|||
|
||||
namespace NzbDrone.Core.Providers.Core
|
||||
{
|
||||
internal class HttpProvider : IHttpProvider
|
||||
public class HttpProvider
|
||||
{
|
||||
private static readonly Logger Logger = LogManager.GetCurrentClassLogger();
|
||||
|
||||
public string DownloadString(string request)
|
||||
public virtual string DownloadString(string request)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
@ -24,7 +24,7 @@ namespace NzbDrone.Core.Providers.Core
|
|||
return String.Empty;
|
||||
}
|
||||
|
||||
public string DownloadString(string request, string username, string password)
|
||||
public virtual string DownloadString(string request, string username, string password)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
@ -41,7 +41,7 @@ namespace NzbDrone.Core.Providers.Core
|
|||
return String.Empty;
|
||||
}
|
||||
|
||||
public void DownloadFile(string request, string filename)
|
||||
public virtual void DownloadFile(string request, string filename)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
@ -59,7 +59,7 @@ namespace NzbDrone.Core.Providers.Core
|
|||
|
||||
}
|
||||
|
||||
public void DownloadFile(string request, string filename, string username, string password)
|
||||
public virtual void DownloadFile(string request, string filename, string username, string password)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
@ -75,7 +75,7 @@ namespace NzbDrone.Core.Providers.Core
|
|||
}
|
||||
}
|
||||
|
||||
public XmlReader DownloadXml(string url)
|
||||
public virtual XmlReader DownloadXml(string url)
|
||||
{
|
||||
return XmlReader.Create(url);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue