Cleanup Multiple Compiler Warnings
This commit is contained in:
parent
fa8b8cebf9
commit
0c1ce66053
|
@ -50,10 +50,6 @@
|
||||||
<Reference Include="FluentAssertions.Core, Version=4.19.0.0, Culture=neutral, PublicKeyToken=33f2691a05b67b6a, processorArchitecture=MSIL">
|
<Reference Include="FluentAssertions.Core, Version=4.19.0.0, Culture=neutral, PublicKeyToken=33f2691a05b67b6a, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\FluentAssertions.4.19.0\lib\net40\FluentAssertions.Core.dll</HintPath>
|
<HintPath>..\packages\FluentAssertions.4.19.0\lib\net40\FluentAssertions.Core.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="Moq, Version=4.0.10827.0, Culture=neutral, PublicKeyToken=69f491c39445e920, processorArchitecture=MSIL">
|
|
||||||
<Private>True</Private>
|
|
||||||
<HintPath>..\packages\FluentAssertions.4.19.0\lib\net45\FluentAssertions.Core.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="Moq, Version=4.0.10827.0, Culture=neutral, PublicKeyToken=69f491c39445e920, processorArchitecture=MSIL" />
|
<Reference Include="Moq, Version=4.0.10827.0, Culture=neutral, PublicKeyToken=69f491c39445e920, processorArchitecture=MSIL" />
|
||||||
<Reference Include="nunit.framework, Version=3.6.0.0, Culture=neutral, PublicKeyToken=2638cd05610744eb, processorArchitecture=MSIL">
|
<Reference Include="nunit.framework, Version=3.6.0.0, Culture=neutral, PublicKeyToken=2638cd05610744eb, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\NUnit.3.6.0\lib\net45\nunit.framework.dll</HintPath>
|
<HintPath>..\packages\NUnit.3.6.0\lib\net45\nunit.framework.dll</HintPath>
|
||||||
|
|
|
@ -75,9 +75,6 @@
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Core" />
|
<Reference Include="System.Core" />
|
||||||
<Reference Include="Microsoft.CSharp" />
|
<Reference Include="Microsoft.CSharp" />
|
||||||
<Reference Include="Omu.ValueInjecter">
|
|
||||||
<HintPath>..\packages\ValueInjecter.2.3.3\lib\net35\Omu.ValueInjecter.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="..\NzbDrone.Common\Properties\SharedAssemblyInfo.cs">
|
<Compile Include="..\NzbDrone.Common\Properties\SharedAssemblyInfo.cs">
|
||||||
|
|
|
@ -49,9 +49,6 @@
|
||||||
<Reference Include="FluentAssertions.Core, Version=4.19.0.0, Culture=neutral, PublicKeyToken=33f2691a05b67b6a, processorArchitecture=MSIL">
|
<Reference Include="FluentAssertions.Core, Version=4.19.0.0, Culture=neutral, PublicKeyToken=33f2691a05b67b6a, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\FluentAssertions.4.19.0\lib\net45\FluentAssertions.Core.dll</HintPath>
|
<HintPath>..\packages\FluentAssertions.4.19.0\lib\net45\FluentAssertions.Core.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="Moq, Version=4.0.10827.0, Culture=neutral, PublicKeyToken=69f491c39445e920, processorArchitecture=MSIL">
|
|
||||||
<HintPath>..\packages\Moq.4.0.10827\lib\NET40\Moq.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="Moq, Version=4.0.10827.0, Culture=neutral, PublicKeyToken=69f491c39445e920, processorArchitecture=MSIL">
|
<Reference Include="Moq, Version=4.0.10827.0, Culture=neutral, PublicKeyToken=69f491c39445e920, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\Moq.4.0.10827\lib\NET40\Moq.dll</HintPath>
|
<HintPath>..\packages\Moq.4.0.10827\lib\NET40\Moq.dll</HintPath>
|
||||||
<Private>True</Private>
|
<Private>True</Private>
|
||||||
|
|
|
@ -31,7 +31,7 @@ namespace NzbDrone.Automation.Test
|
||||||
LogManager.Configuration.LoggingRules.Add(new LoggingRule("*", NLog.LogLevel.Trace, consoleTarget));
|
LogManager.Configuration.LoggingRules.Add(new LoggingRule("*", NLog.LogLevel.Trace, consoleTarget));
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestFixtureSetUp]
|
[OneTimeSetUp]
|
||||||
public void SmokeTestSetup()
|
public void SmokeTestSetup()
|
||||||
{
|
{
|
||||||
driver = new FirefoxDriver();
|
driver = new FirefoxDriver();
|
||||||
|
@ -56,7 +56,7 @@ namespace NzbDrone.Automation.Test
|
||||||
.Select(e => e.Text);
|
.Select(e => e.Text);
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestFixtureTearDown]
|
[OneTimeTearDown]
|
||||||
public void SmokeTestTearDown()
|
public void SmokeTestTearDown()
|
||||||
{
|
{
|
||||||
_runner.KillAll();
|
_runner.KillAll();
|
||||||
|
|
|
@ -46,9 +46,6 @@
|
||||||
<Reference Include="FluentAssertions.Core, Version=4.19.0.0, Culture=neutral, PublicKeyToken=33f2691a05b67b6a, processorArchitecture=MSIL">
|
<Reference Include="FluentAssertions.Core, Version=4.19.0.0, Culture=neutral, PublicKeyToken=33f2691a05b67b6a, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\FluentAssertions.4.19.0\lib\net45\FluentAssertions.Core.dll</HintPath>
|
<HintPath>..\packages\FluentAssertions.4.19.0\lib\net45\FluentAssertions.Core.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="Moq, Version=4.0.10827.0, Culture=neutral, PublicKeyToken=69f491c39445e920, processorArchitecture=MSIL">
|
|
||||||
<HintPath>..\packages\Moq.4.0.10827\lib\NET40\Moq.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="Moq, Version=4.0.10827.0, Culture=neutral, PublicKeyToken=69f491c39445e920, processorArchitecture=MSIL">
|
<Reference Include="Moq, Version=4.0.10827.0, Culture=neutral, PublicKeyToken=69f491c39445e920, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\Moq.4.0.10827\lib\NET40\Moq.dll</HintPath>
|
<HintPath>..\packages\Moq.4.0.10827\lib\NET40\Moq.dll</HintPath>
|
||||||
<Private>True</Private>
|
<Private>True</Private>
|
||||||
|
|
|
@ -82,9 +82,6 @@
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Core" />
|
<Reference Include="System.Core" />
|
||||||
<Reference Include="Owin">
|
|
||||||
<HintPath>..\packages\Owin.1.0\lib\net40\Owin.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="Owin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f0ebd12fd5e55cc5, processorArchitecture=MSIL">
|
<Reference Include="Owin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f0ebd12fd5e55cc5, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\Owin.1.0\lib\net40\Owin.dll</HintPath>
|
<HintPath>..\packages\Owin.1.0\lib\net40\Owin.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
|
|
|
@ -15,7 +15,7 @@ namespace NzbDrone.Core.Test.Datastore.Converters
|
||||||
{
|
{
|
||||||
var i = 5;
|
var i = 5;
|
||||||
|
|
||||||
Subject.ToDB(5).Should().Be(5);
|
Subject.ToDB(i).Should().Be(5);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
|
|
@ -18,8 +18,6 @@ namespace NzbDrone.Core.Test.MediaFiles.EpisodeImport.Aggregation.Aggregators
|
||||||
private Mock<IAugmentQuality> _fileExtensionAugmenter;
|
private Mock<IAugmentQuality> _fileExtensionAugmenter;
|
||||||
private Mock<IAugmentQuality> _nameAugmenter;
|
private Mock<IAugmentQuality> _nameAugmenter;
|
||||||
|
|
||||||
private IEnumerable<IAugmentQuality> _qualityAugmenters;
|
|
||||||
|
|
||||||
[SetUp]
|
[SetUp]
|
||||||
public void Setup()
|
public void Setup()
|
||||||
{
|
{
|
||||||
|
|
|
@ -75,13 +75,6 @@
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="Moq, Version=4.0.10827.0, Culture=neutral, PublicKeyToken=69f491c39445e920, processorArchitecture=MSIL">
|
<Reference Include="Moq, Version=4.0.10827.0, Culture=neutral, PublicKeyToken=69f491c39445e920, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\Moq.4.0.10827\lib\NET40\Moq.dll</HintPath>
|
<HintPath>..\packages\Moq.4.0.10827\lib\NET40\Moq.dll</HintPath>
|
||||||
</Reference>
|
|
||||||
<Reference Include="Moq, Version=4.0.10827.0, Culture=neutral, PublicKeyToken=69f491c39445e920, processorArchitecture=MSIL">
|
|
||||||
<HintPath>..\packages\Moq.4.0.10827\lib\NET40\Moq.dll</HintPath>
|
|
||||||
<Private>True</Private>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="NCrunch.Framework, Version=3.2.0.3, Culture=neutral, PublicKeyToken=01d101bf6f3e0aea, processorArchitecture=MSIL">
|
|
||||||
<HintPath>..\packages\NCrunch.Framework.3.2.0.3\lib\NCrunch.Framework.dll</HintPath>
|
|
||||||
<Private>True</Private>
|
<Private>True</Private>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
<Reference Include="Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||||
|
|
|
@ -2,7 +2,6 @@ using System.Collections.Generic;
|
||||||
using FizzWare.NBuilder;
|
using FizzWare.NBuilder;
|
||||||
using FluentAssertions;
|
using FluentAssertions;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using NzbDrone.Core.MediaFiles;
|
|
||||||
using NzbDrone.Core.Organizer;
|
using NzbDrone.Core.Organizer;
|
||||||
using NzbDrone.Core.Test.Framework;
|
using NzbDrone.Core.Test.Framework;
|
||||||
using NzbDrone.Core.Tv;
|
using NzbDrone.Core.Tv;
|
||||||
|
@ -14,7 +13,6 @@ namespace NzbDrone.Core.Test.OrganizerTests.FileNameBuilderTests
|
||||||
{
|
{
|
||||||
private Series _series;
|
private Series _series;
|
||||||
private Episode _episode;
|
private Episode _episode;
|
||||||
private EpisodeFile _episodeFile;
|
|
||||||
private NamingConfig _namingConfig;
|
private NamingConfig _namingConfig;
|
||||||
|
|
||||||
[SetUp]
|
[SetUp]
|
||||||
|
|
|
@ -20,7 +20,7 @@ namespace NzbDrone.Core.Test.TvTests
|
||||||
private List<Episode> _deletedEpisodes;
|
private List<Episode> _deletedEpisodes;
|
||||||
private Tuple<Series, List<Episode>> _gameOfThrones;
|
private Tuple<Series, List<Episode>> _gameOfThrones;
|
||||||
|
|
||||||
[TestFixtureSetUp]
|
[OneTimeSetUp]
|
||||||
public void TestFixture()
|
public void TestFixture()
|
||||||
{
|
{
|
||||||
UseRealHttp();
|
UseRealHttp();
|
||||||
|
|
|
@ -160,7 +160,7 @@ namespace NzbDrone.Core.Download.Clients.Hadouken
|
||||||
}
|
}
|
||||||
catch (DownloadClientAuthenticationException ex)
|
catch (DownloadClientAuthenticationException ex)
|
||||||
{
|
{
|
||||||
_logger.ErrorException(ex.Message, ex);
|
_logger.Error(ex, ex.Message);
|
||||||
|
|
||||||
return new NzbDroneValidationFailure("Password", "Authentication failed");
|
return new NzbDroneValidationFailure("Password", "Authentication failed");
|
||||||
}
|
}
|
||||||
|
@ -176,7 +176,7 @@ namespace NzbDrone.Core.Download.Clients.Hadouken
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.ErrorException(ex.Message, ex);
|
_logger.Error(ex, ex.Message);
|
||||||
return new NzbDroneValidationFailure(String.Empty, "Failed to get the list of torrents: " + ex.Message);
|
return new NzbDroneValidationFailure(String.Empty, "Failed to get the list of torrents: " + ex.Message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,6 @@ namespace NzbDrone.Core.Download.Clients.Hadouken
|
||||||
|
|
||||||
public class HadoukenProxy : IHadoukenProxy
|
public class HadoukenProxy : IHadoukenProxy
|
||||||
{
|
{
|
||||||
private static int _callId;
|
|
||||||
private readonly IHttpClient _httpClient;
|
private readonly IHttpClient _httpClient;
|
||||||
private readonly Logger _logger;
|
private readonly Logger _logger;
|
||||||
|
|
||||||
|
@ -147,7 +146,7 @@ namespace NzbDrone.Core.Download.Clients.Hadouken
|
||||||
}
|
}
|
||||||
catch(Exception ex)
|
catch(Exception ex)
|
||||||
{
|
{
|
||||||
_logger.ErrorException("Failed to map Hadouken torrent data.", ex);
|
_logger.Error(ex, "Failed to map Hadouken torrent data.");
|
||||||
}
|
}
|
||||||
|
|
||||||
return torrent;
|
return torrent;
|
||||||
|
|
|
@ -73,7 +73,7 @@ namespace NzbDrone.Core.Extras.Metadata
|
||||||
{
|
{
|
||||||
_aggregationService.Augment(localEpisode, false);
|
_aggregationService.Augment(localEpisode, false);
|
||||||
}
|
}
|
||||||
catch (AugmentingFailedException ex)
|
catch (AugmentingFailedException)
|
||||||
{
|
{
|
||||||
_logger.Debug("Unable to parse extra file: {0}", possibleMetadataFile);
|
_logger.Debug("Unable to parse extra file: {0}", possibleMetadataFile);
|
||||||
continue;
|
continue;
|
||||||
|
|
|
@ -58,7 +58,7 @@ namespace NzbDrone.Core.Extras.Others
|
||||||
{
|
{
|
||||||
_aggregationService.Augment(localEpisode, false);
|
_aggregationService.Augment(localEpisode, false);
|
||||||
}
|
}
|
||||||
catch (AugmentingFailedException ex)
|
catch (AugmentingFailedException)
|
||||||
{
|
{
|
||||||
_logger.Debug("Unable to parse extra file: {0}", possibleExtraFile);
|
_logger.Debug("Unable to parse extra file: {0}", possibleExtraFile);
|
||||||
continue;
|
continue;
|
||||||
|
|
|
@ -53,7 +53,7 @@ namespace NzbDrone.Core.Extras.Subtitles
|
||||||
{
|
{
|
||||||
_aggregationService.Augment(localEpisode, false);
|
_aggregationService.Augment(localEpisode, false);
|
||||||
}
|
}
|
||||||
catch (AugmentingFailedException ex)
|
catch (AugmentingFailedException)
|
||||||
{
|
{
|
||||||
_logger.Debug("Unable to parse extra file: {0}", possibleSubtitleFile);
|
_logger.Debug("Unable to parse extra file: {0}", possibleSubtitleFile);
|
||||||
continue;
|
continue;
|
||||||
|
|
|
@ -51,7 +51,7 @@ namespace NzbDrone.Core.Messaging.Commands
|
||||||
_logger.Error(ex, "Thread aborted");
|
_logger.Error(ex, "Thread aborted");
|
||||||
Thread.ResetAbort();
|
Thread.ResetAbort();
|
||||||
}
|
}
|
||||||
catch (OperationCanceledException ex)
|
catch (OperationCanceledException)
|
||||||
{
|
{
|
||||||
_logger.Trace("Stopped one command execution pipeline");
|
_logger.Trace("Stopped one command execution pipeline");
|
||||||
}
|
}
|
||||||
|
|
|
@ -68,7 +68,7 @@ namespace NzbDrone.Core.Notifications.Plex.PlexTv
|
||||||
{
|
{
|
||||||
throw new NzbDroneClientException(ex.Response.StatusCode, "Unable to connect to plex.tv");
|
throw new NzbDroneClientException(ex.Response.StatusCode, "Unable to connect to plex.tv");
|
||||||
}
|
}
|
||||||
catch (WebException ex)
|
catch (WebException)
|
||||||
{
|
{
|
||||||
throw new NzbDroneClientException(HttpStatusCode.BadRequest, "Unable to connect to plex.tv");
|
throw new NzbDroneClientException(HttpStatusCode.BadRequest, "Unable to connect to plex.tv");
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,6 @@ using NzbDrone.Common.Instrumentation.Extensions;
|
||||||
using NzbDrone.Core.Messaging.Commands;
|
using NzbDrone.Core.Messaging.Commands;
|
||||||
using NzbDrone.Core.Messaging.Events;
|
using NzbDrone.Core.Messaging.Events;
|
||||||
using NzbDrone.Core.Organizer;
|
using NzbDrone.Core.Organizer;
|
||||||
using NzbDrone.Core.RootFolders;
|
|
||||||
using NzbDrone.Core.Tv.Commands;
|
using NzbDrone.Core.Tv.Commands;
|
||||||
using NzbDrone.Core.Tv.Events;
|
using NzbDrone.Core.Tv.Events;
|
||||||
|
|
||||||
|
@ -17,7 +16,6 @@ namespace NzbDrone.Core.Tv
|
||||||
private readonly IBuildFileNames _filenameBuilder;
|
private readonly IBuildFileNames _filenameBuilder;
|
||||||
private readonly IDiskProvider _diskProvider;
|
private readonly IDiskProvider _diskProvider;
|
||||||
private readonly IDiskTransferService _diskTransferService;
|
private readonly IDiskTransferService _diskTransferService;
|
||||||
private readonly IRootFolderService _rootFolderService;
|
|
||||||
private readonly IEventAggregator _eventAggregator;
|
private readonly IEventAggregator _eventAggregator;
|
||||||
private readonly Logger _logger;
|
private readonly Logger _logger;
|
||||||
|
|
||||||
|
|
|
@ -96,9 +96,6 @@
|
||||||
<Reference Include="NLog, Version=4.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c, processorArchitecture=MSIL">
|
<Reference Include="NLog, Version=4.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\NLog.4.5.3\lib\net45\NLog.dll</HintPath>
|
<HintPath>..\packages\NLog.4.5.3\lib\net45\NLog.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="NLog.Extensions.Logging, Version=1.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c, processorArchitecture=MSIL">
|
|
||||||
<HintPath>..\packages\NLog.Extensions.Logging.1.1.0\lib\net462\NLog.Extensions.Logging.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="Owin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f0ebd12fd5e55cc5, processorArchitecture=MSIL">
|
<Reference Include="Owin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f0ebd12fd5e55cc5, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\Owin.1.0\lib\net40\Owin.dll</HintPath>
|
<HintPath>..\packages\Owin.1.0\lib\net40\Owin.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
|
|
|
@ -37,7 +37,7 @@ namespace NzbDrone.Host.Owin.MiddleWare
|
||||||
context.Response.Headers.Add(_versionHeader);
|
context.Response.Headers.Add(_versionHeader);
|
||||||
await Next.Invoke(context);
|
await Next.Invoke(context);
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
Logger.Debug("Unable to set version header");
|
Logger.Debug("Unable to set version header");
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using Sonarr.Http.Extensions;
|
using Sonarr.Http.Extensions;
|
||||||
using RestSharp;
|
using RestSharp;
|
||||||
using Sonarr.Http.Extensions;
|
|
||||||
|
|
||||||
namespace NzbDrone.Integration.Test
|
namespace NzbDrone.Integration.Test
|
||||||
{
|
{
|
||||||
|
|
|
@ -62,9 +62,6 @@
|
||||||
<Reference Include="Microsoft.Owin.Hosting, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
<Reference Include="Microsoft.Owin.Hosting, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\Microsoft.Owin.Hosting.3.1.0\lib\net45\Microsoft.Owin.Hosting.dll</HintPath>
|
<HintPath>..\packages\Microsoft.Owin.Hosting.3.1.0\lib\net45\Microsoft.Owin.Hosting.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="Moq, Version=4.0.10827.0, Culture=neutral, PublicKeyToken=69f491c39445e920, processorArchitecture=MSIL">
|
|
||||||
<HintPath>..\packages\Moq.4.0.10827\lib\NET40\Moq.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="Moq, Version=4.0.10827.0, Culture=neutral, PublicKeyToken=69f491c39445e920, processorArchitecture=MSIL">
|
<Reference Include="Moq, Version=4.0.10827.0, Culture=neutral, PublicKeyToken=69f491c39445e920, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\Moq.4.0.10827\lib\NET40\Moq.dll</HintPath>
|
<HintPath>..\packages\Moq.4.0.10827\lib\NET40\Moq.dll</HintPath>
|
||||||
<Private>True</Private>
|
<Private>True</Private>
|
||||||
|
|
|
@ -58,9 +58,6 @@
|
||||||
<Reference Include="Microsoft.Practices.Unity.Configuration, Version=2.1.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
<Reference Include="Microsoft.Practices.Unity.Configuration, Version=2.1.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\Unity.2.1.505.2\lib\NET35\Microsoft.Practices.Unity.Configuration.dll</HintPath>
|
<HintPath>..\packages\Unity.2.1.505.2\lib\NET35\Microsoft.Practices.Unity.Configuration.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="Moq, Version=4.0.10827.0, Culture=neutral, PublicKeyToken=69f491c39445e920, processorArchitecture=MSIL">
|
|
||||||
<HintPath>..\packages\Moq.4.0.10827\lib\NET40\Moq.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="Moq, Version=4.0.10827.0, Culture=neutral, PublicKeyToken=69f491c39445e920, processorArchitecture=MSIL">
|
<Reference Include="Moq, Version=4.0.10827.0, Culture=neutral, PublicKeyToken=69f491c39445e920, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\Moq.4.0.10827\lib\NET40\Moq.dll</HintPath>
|
<HintPath>..\packages\Moq.4.0.10827\lib\NET40\Moq.dll</HintPath>
|
||||||
<Private>True</Private>
|
<Private>True</Private>
|
||||||
|
|
|
@ -48,9 +48,6 @@
|
||||||
<Reference Include="FluentAssertions.Core, Version=4.19.0.0, Culture=neutral, PublicKeyToken=33f2691a05b67b6a, processorArchitecture=MSIL">
|
<Reference Include="FluentAssertions.Core, Version=4.19.0.0, Culture=neutral, PublicKeyToken=33f2691a05b67b6a, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\FluentAssertions.4.19.0\lib\net45\FluentAssertions.Core.dll</HintPath>
|
<HintPath>..\packages\FluentAssertions.4.19.0\lib\net45\FluentAssertions.Core.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="Moq, Version=4.0.10827.0, Culture=neutral, PublicKeyToken=69f491c39445e920, processorArchitecture=MSIL">
|
|
||||||
<HintPath>..\packages\Moq.4.0.10827\lib\NET40\Moq.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="Moq, Version=4.0.10827.0, Culture=neutral, PublicKeyToken=69f491c39445e920, processorArchitecture=MSIL">
|
<Reference Include="Moq, Version=4.0.10827.0, Culture=neutral, PublicKeyToken=69f491c39445e920, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\Moq.4.0.10827\lib\NET40\Moq.dll</HintPath>
|
<HintPath>..\packages\Moq.4.0.10827\lib\NET40\Moq.dll</HintPath>
|
||||||
<Private>True</Private>
|
<Private>True</Private>
|
||||||
|
|
|
@ -23,7 +23,6 @@ namespace Sonarr.Api.V3.EpisodeFiles
|
||||||
{
|
{
|
||||||
private readonly IMediaFileService _mediaFileService;
|
private readonly IMediaFileService _mediaFileService;
|
||||||
private readonly IDeleteMediaFiles _mediaFileDeletionService;
|
private readonly IDeleteMediaFiles _mediaFileDeletionService;
|
||||||
private readonly IRecycleBinProvider _recycleBinProvider;
|
|
||||||
private readonly ISeriesService _seriesService;
|
private readonly ISeriesService _seriesService;
|
||||||
private readonly IUpgradableSpecification _upgradableSpecification;
|
private readonly IUpgradableSpecification _upgradableSpecification;
|
||||||
|
|
||||||
|
|
|
@ -15,11 +15,11 @@ namespace Sonarr.Api.V3.Profiles.Release
|
||||||
{
|
{
|
||||||
_releaseProfileService = releaseProfileService;
|
_releaseProfileService = releaseProfileService;
|
||||||
|
|
||||||
GetResourceById = Get;
|
GetResourceById = GetReleaseProfile;
|
||||||
GetResourceAll = GetAll;
|
GetResourceAll = GetAll;
|
||||||
CreateResource = Create;
|
CreateResource = Create;
|
||||||
UpdateResource = Update;
|
UpdateResource = Update;
|
||||||
DeleteResource = Delete;
|
DeleteResource = DeleteReleaseProfile;
|
||||||
|
|
||||||
SharedValidator.Custom(restriction =>
|
SharedValidator.Custom(restriction =>
|
||||||
{
|
{
|
||||||
|
@ -32,7 +32,7 @@ namespace Sonarr.Api.V3.Profiles.Release
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private ReleaseProfileResource Get(int id)
|
private ReleaseProfileResource GetReleaseProfile(int id)
|
||||||
{
|
{
|
||||||
return _releaseProfileService.Get(id).ToResource();
|
return _releaseProfileService.Get(id).ToResource();
|
||||||
}
|
}
|
||||||
|
@ -52,7 +52,7 @@ namespace Sonarr.Api.V3.Profiles.Release
|
||||||
_releaseProfileService.Update(resource.ToModel());
|
_releaseProfileService.Update(resource.ToModel());
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Delete(int id)
|
private void DeleteReleaseProfile(int id)
|
||||||
{
|
{
|
||||||
_releaseProfileService.Delete(id);
|
_releaseProfileService.Delete(id);
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,11 +13,11 @@ namespace Sonarr.Api.V3.Tags
|
||||||
{
|
{
|
||||||
_tagService = tagService;
|
_tagService = tagService;
|
||||||
|
|
||||||
GetResourceById = Get;
|
GetResourceById = GetTagDetails;
|
||||||
GetResourceAll = GetAll;
|
GetResourceAll = GetAll;
|
||||||
}
|
}
|
||||||
|
|
||||||
private TagDetailsResource Get(int id)
|
private TagDetailsResource GetTagDetails(int id)
|
||||||
{
|
{
|
||||||
return _tagService.Details(id).ToResource();
|
return _tagService.Details(id).ToResource();
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,14 +17,14 @@ namespace Sonarr.Api.V3.Tags
|
||||||
{
|
{
|
||||||
_tagService = tagService;
|
_tagService = tagService;
|
||||||
|
|
||||||
GetResourceById = Get;
|
GetResourceById = GetTag;
|
||||||
GetResourceAll = GetAll;
|
GetResourceAll = GetAll;
|
||||||
CreateResource = Create;
|
CreateResource = Create;
|
||||||
UpdateResource = Update;
|
UpdateResource = Update;
|
||||||
DeleteResource = Delete;
|
DeleteResource = DeleteTag;
|
||||||
}
|
}
|
||||||
|
|
||||||
private TagResource Get(int id)
|
private TagResource GetTag(int id)
|
||||||
{
|
{
|
||||||
return _tagService.GetTag(id).ToResource();
|
return _tagService.GetTag(id).ToResource();
|
||||||
}
|
}
|
||||||
|
@ -44,7 +44,7 @@ namespace Sonarr.Api.V3.Tags
|
||||||
_tagService.Update(resource.ToModel());
|
_tagService.Update(resource.ToModel());
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Delete(int id)
|
private void DeleteTag(int id)
|
||||||
{
|
{
|
||||||
_tagService.Delete(id);
|
_tagService.Delete(id);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using NLog;
|
using NLog;
|
||||||
using NzbDrone.Common.Disk;
|
using NzbDrone.Common.Disk;
|
||||||
using NzbDrone.Common.EnvironmentInfo;
|
|
||||||
using NzbDrone.Core.Backup;
|
using NzbDrone.Core.Backup;
|
||||||
|
|
||||||
namespace Sonarr.Http.Frontend.Mappers
|
namespace Sonarr.Http.Frontend.Mappers
|
||||||
|
@ -9,7 +8,6 @@ namespace Sonarr.Http.Frontend.Mappers
|
||||||
public class BackupFileMapper : StaticResourceMapperBase
|
public class BackupFileMapper : StaticResourceMapperBase
|
||||||
{
|
{
|
||||||
private readonly IBackupService _backupService;
|
private readonly IBackupService _backupService;
|
||||||
private readonly IAppFolderInfo _appFolderInfo;
|
|
||||||
|
|
||||||
public BackupFileMapper(IBackupService backupService, IDiskProvider diskProvider, Logger logger)
|
public BackupFileMapper(IBackupService backupService, IDiskProvider diskProvider, Logger logger)
|
||||||
: base(diskProvider, logger)
|
: base(diskProvider, logger)
|
||||||
|
|
|
@ -91,7 +91,6 @@ namespace Sonarr.Http
|
||||||
break;
|
break;
|
||||||
case Lifetime.PerRequest:
|
case Lifetime.PerRequest:
|
||||||
throw new InvalidOperationException("Unable to directly register a per request lifetime.");
|
throw new InvalidOperationException("Unable to directly register a per request lifetime.");
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
throw new ArgumentOutOfRangeException();
|
throw new ArgumentOutOfRangeException();
|
||||||
}
|
}
|
||||||
|
@ -118,7 +117,6 @@ namespace Sonarr.Http
|
||||||
break;
|
break;
|
||||||
case Lifetime.PerRequest:
|
case Lifetime.PerRequest:
|
||||||
throw new InvalidOperationException("Unable to directly register a per request lifetime.");
|
throw new InvalidOperationException("Unable to directly register a per request lifetime.");
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
throw new ArgumentOutOfRangeException();
|
throw new ArgumentOutOfRangeException();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue