diff --git a/src/Directory.Build.props b/src/Directory.Build.props
new file mode 100644
index 000000000..fa4746225
--- /dev/null
+++ b/src/Directory.Build.props
@@ -0,0 +1,77 @@
+
+
+
+ $(MSBuildThisFileDirectory)..\
+
+
+ Library
+ Test
+ Exe
+ Exe
+ Exe
+ Exe
+ Update
+
+
+ false
+ true
+ true
+ true
+
+
+
+
+ $(RadarrRootDir)_temp\obj\$(Configuration)\$(MSBuildProjectName)\
+ $(RadarrRootDir)_temp\bin\$(Configuration)\$(MSBuildProjectName)\
+
+
+ $(RadarrRootDir)_output\
+ $(RadarrRootDir)_tests\
+ $(RadarrRootDir)_output\Radarr.Update\
+
+
+ $([MSBuild]::MakeRelative('$(MSBuildProjectDirectory)', '$(IntermediateOutputPath)'))
+ $([MSBuild]::MakeRelative('$(MSBuildProjectDirectory)', '$(OutputPath)'))
+
+
+ full
+ true
+
+
+
+
+ true
+ true
+
+
+
+
+ Radarr
+ radarr.video
+ Copyright 2014-$([System.DateTime]::Now.ToString('yyyy')) radarr.video (GNU General Public v3)
+
+
+ 10.0.0.*
+ $(Configuration)-dev
+
+ false
+ false
+ false
+
+ False
+
+
+
+
+ <_Parameter1>$(AssemblyConfiguration)
+
+
+
+
+
+ false
+
+
+ $(MSBuildProjectName.Replace('Radarr','NzbDrone'))
+
+
\ No newline at end of file
diff --git a/src/Marr.Data/Marr.Data.csproj b/src/Marr.Data/Marr.Data.csproj
index 449ee5e38..a1233e3b0 100644
--- a/src/Marr.Data/Marr.Data.csproj
+++ b/src/Marr.Data/Marr.Data.csproj
@@ -1,154 +1,10 @@
-
-
+
- Debug
- x86
- 9.0.30729
- 2.0
- {F6FC6BE7-0847-4817-A1ED-223DC647C3D7}
- Library
- Properties
- Marr.Data
- Marr.Data
- v4.0
- 512
-
-
- 3.5
-
-
-
- ..\
- true
+ net462
+ x86
+
+ 3.17.0.0
+ false
+ false
-
- true
- ..\..\_output\
- DEBUG;TRACE
- full
- x86
- prompt
- MinimumRecommendedRules.ruleset
- 4
- false
-
-
- ..\..\_output\
- TRACE
- true
- pdbonly
- x86
- prompt
- MinimumRecommendedRules.ruleset
- 4
-
-
-
-
- 4.0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/Marr.Data/Properties/AssemblyInfo.cs b/src/Marr.Data/Properties/AssemblyInfo.cs
deleted file mode 100644
index 8b5025d1a..000000000
--- a/src/Marr.Data/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,41 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("Marr.Data")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("Marr.Data")]
-[assembly: AssemblyCopyright("Copyright © 2011")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Share internals
-[assembly: InternalsVisibleTo("Marr.Data.Relationships")]
-[assembly: InternalsVisibleTo("Marr.Data.Tests")]
-
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("6864f4d2-cd0f-4720-9c15-3085f1aa8293")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("3.17.*")]
-[assembly: AssemblyInformationalVersion("3.17")]
diff --git a/src/Microsoft.AspNet.SignalR.Core/Microsoft.AspNet.SignalR.Core.csproj.DotSettings b/src/Microsoft.AspNet.SignalR.Core/Microsoft.AspNet.SignalR.Core.csproj.DotSettings
deleted file mode 100644
index e7d45a2a8..000000000
--- a/src/Microsoft.AspNet.SignalR.Core/Microsoft.AspNet.SignalR.Core.csproj.DotSettings
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/src/MonoTorrent/MonoTorrent.csproj b/src/MonoTorrent/MonoTorrent.csproj
index dd8fd6907..6efcd7ac9 100644
--- a/src/MonoTorrent/MonoTorrent.csproj
+++ b/src/MonoTorrent/MonoTorrent.csproj
@@ -1,117 +1,8 @@
-
-
+
- Debug
- x86
- Local
- 9.0.21022
- 2.0
- {411A9E0E-FDC6-4E25-828A-0C2CD1CD96F8}
- Library
- MonoTorrent
- MonoTorrent
-
-
- JScript
- Grid
- IE50
- false
-
-
- MonoTorrent
-
-
- 3.5
-
-
- v4.0
-
- 512
- publish\
- true
- Disk
- false
- Foreground
- 7
- Days
- false
- false
- true
- 0
- 1.0.0.%2a
- false
- false
- true
- ..\
+ net462
+ x86
+
+ 9.0.21022
-
- x86
- true
- full
- false
- ..\..\_output\
- DEBUG;TRACE
- prompt
- 4
-
-
- x86
- pdbonly
- true
- ..\..\_output\
- TRACE
- prompt
- 4
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- False
- .NET Framework 2.0 %28x86%29
- true
-
-
- False
- .NET Framework 3.0 %28x86%29
- false
-
-
- False
- .NET Framework 3.5
- false
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/NzbDrone.Api.Test/NzbDrone.Api.Test.csproj b/src/NzbDrone.Api.Test/NzbDrone.Api.Test.csproj
deleted file mode 100644
index df6a64f8e..000000000
--- a/src/NzbDrone.Api.Test/NzbDrone.Api.Test.csproj
+++ /dev/null
@@ -1,117 +0,0 @@
-
-
-
-
- Debug
- x86
- {D18A5DEB-5102-4775-A1AF-B75DAAA8907B}
- Library
- Properties
- NzbDrone.Api.Test
- Radarr.Api.Test
- v4.6.1
- 512
- ..\
- true
- 12.0.0
- 2.0
-
-
-
- true
- bin\x86\Debug\
- DEBUG;TRACE
- full
- x86
- prompt
- MinimumRecommendedRules.ruleset
- 4
- false
- false
-
-
- bin\x86\Release\
- TRACE
- true
- pdbonly
- x86
- prompt
- MinimumRecommendedRules.ruleset
- 4
- false
-
-
-
- ..\packages\NBuilder.4.0.0\lib\net40\FizzWare.NBuilder.dll
-
-
- ..\packages\FluentAssertions.4.18.0\lib\net45\FluentAssertions.dll
-
-
- ..\packages\FluentAssertions.4.18.0\lib\net45\FluentAssertions.Core.dll
-
-
- ..\packages\Moq.4.0.10827\lib\NET40\Moq.dll
-
-
- ..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll
-
-
- ..\packages\NUnit.3.5.0\lib\net45\nunit.framework.dll
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {F6FC6BE7-0847-4817-A1ED-223DC647C3D7}
- Marr.Data
-
-
- {FD286DF8-2D3A-4394-8AD5-443FADE55FB2}
- NzbDrone.Api
-
-
- {F2BE0FDF-6E47-4827-A420-DD4EF82407F8}
- NzbDrone.Common
-
-
- {FF5EE3B6-913B-47CE-9CEB-11C51B4E1205}
- NzbDrone.Core
-
-
- {CADDFCE0-7509-4430-8364-2074E1EEFCA2}
- NzbDrone.Test.Common
-
-
- {c5953dab-89db-46d9-a401-d620f54b776e}
- Radarr.Http
-
-
-
-
- App.config
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/NzbDrone.Api.Test/Properties/AssemblyInfo.cs b/src/NzbDrone.Api.Test/Properties/AssemblyInfo.cs
deleted file mode 100644
index db27f2a96..000000000
--- a/src/NzbDrone.Api.Test/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-using System.Reflection;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("Radarr.Api.Test")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("Radarr.Api.Test")]
-[assembly: AssemblyCopyright("Copyright © 2013")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("260b2ff9-d3b7-4d8a-b720-a12c93d045e5")]
-
diff --git a/src/NzbDrone.Api.Test/Radarr.Api.Test.csproj b/src/NzbDrone.Api.Test/Radarr.Api.Test.csproj
new file mode 100644
index 000000000..c27b3a0fb
--- /dev/null
+++ b/src/NzbDrone.Api.Test/Radarr.Api.Test.csproj
@@ -0,0 +1,14 @@
+
+
+ net462
+ x86
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/NzbDrone.Api.Test/packages.config b/src/NzbDrone.Api.Test/packages.config
deleted file mode 100644
index c382db0b1..000000000
--- a/src/NzbDrone.Api.Test/packages.config
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/NzbDrone.Api/NzbDrone.Api.csproj b/src/NzbDrone.Api/NzbDrone.Api.csproj
deleted file mode 100644
index 50a741bc0..000000000
--- a/src/NzbDrone.Api/NzbDrone.Api.csproj
+++ /dev/null
@@ -1,248 +0,0 @@
-
-
-
-
- Debug
- x86
- {FD286DF8-2D3A-4394-8AD5-443FADE55FB2}
- Library
- Properties
- NzbDrone.Api
- Radarr.Api
- v4.6.1
- 512
- ..\
- true
-
-
- 12.0.0
- 2.0
-
-
- true
- ..\..\_output\
- DEBUG;TRACE
- full
- x86
- prompt
- MinimumRecommendedRules.ruleset
- 4
- false
- false
-
-
- ..\..\_output\
- TRACE
- true
- pdbonly
- x86
- prompt
- MinimumRecommendedRules.ruleset
- 4
- false
-
-
-
- ..\packages\Ical.Net.2.2.32\lib\net46\antlr.runtime.dll
-
-
- ..\packages\FluentValidation.6.2.1.0\lib\Net45\FluentValidation.dll
-
-
- ..\packages\Ical.Net.2.2.32\lib\net46\Ical.Net.dll
-
-
- ..\packages\Ical.Net.2.2.32\lib\net46\Ical.Net.Collections.dll
-
-
- ..\packages\Nancy.1.4.4\lib\net40\Nancy.dll
-
-
- ..\packages\Nancy.Authentication.Basic.1.4.1\lib\net40\Nancy.Authentication.Basic.dll
-
-
- ..\packages\Nancy.Authentication.Forms.1.4.1\lib\net40\Nancy.Authentication.Forms.dll
-
-
- ..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll
-
-
- ..\packages\NLog.4.6.6\lib\net45\NLog.dll
-
-
- ..\packages\Ical.Net.2.2.32\lib\net46\NodaTime.dll
-
-
-
-
-
-
-
- False
- ..\Libraries\Sqlite\System.Data.SQLite.dll
-
-
-
-
-
-
-
-
-
- Properties\SharedAssemblyInfo.cs
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Designer
-
-
-
-
- {F6FC6BE7-0847-4817-A1ED-223DC647C3D7}
- Marr.Data
-
-
- {F2BE0FDF-6E47-4827-A420-DD4EF82407F8}
- NzbDrone.Common
-
-
- {ff5ee3b6-913b-47ce-9ceb-11c51b4e1205}
- NzbDrone.Core
-
-
- {7C2CC69F-5CA0-4E5C-85CB-983F9F6C3B36}
- NzbDrone.SignalR
-
-
- {c5953dab-89db-46d9-a401-d620f54b776e}
- Radarr.Http
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/NzbDrone.Api/Profiles/Delay/DelayProfileModule.cs b/src/NzbDrone.Api/Profiles/Delay/DelayProfileModule.cs
index 8ccc3fd84..af65b5aee 100644
--- a/src/NzbDrone.Api/Profiles/Delay/DelayProfileModule.cs
+++ b/src/NzbDrone.Api/Profiles/Delay/DelayProfileModule.cs
@@ -28,14 +28,12 @@ namespace NzbDrone.Api.Profiles.Delay
SharedValidator.RuleFor(d => d.UsenetDelay).GreaterThanOrEqualTo(0);
SharedValidator.RuleFor(d => d.TorrentDelay).GreaterThanOrEqualTo(0);
- SharedValidator.Custom(delayProfile =>
+ SharedValidator.RuleFor(d => d).Custom((delayProfile, context) =>
{
if (!delayProfile.EnableUsenet && !delayProfile.EnableTorrent)
{
- return new ValidationFailure("", "Either Usenet or Torrent should be enabled");
+ context.AddFailure("Either Usenet or Torrent should be enabled");
}
-
- return null;
});
}
diff --git a/src/NzbDrone.Api/Properties/AssemblyInfo.cs b/src/NzbDrone.Api/Properties/AssemblyInfo.cs
deleted file mode 100644
index aad3f0395..000000000
--- a/src/NzbDrone.Api/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-[assembly: AssemblyTitle("Radarr.Api")]
-
-[assembly: Guid("4c0922d7-979e-4ff7-b44b-b8ac2100eeb5")]
-
-
-[assembly: InternalsVisibleTo("Radarr.Core")]
diff --git a/src/NzbDrone.Api/Radarr.Api.csproj b/src/NzbDrone.Api/Radarr.Api.csproj
new file mode 100644
index 000000000..b428c589f
--- /dev/null
+++ b/src/NzbDrone.Api/Radarr.Api.csproj
@@ -0,0 +1,18 @@
+
+
+ net462
+ x86
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/NzbDrone.Api/Restrictions/RestrictionModule.cs b/src/NzbDrone.Api/Restrictions/RestrictionModule.cs
index ab00cca13..d131a8214 100644
--- a/src/NzbDrone.Api/Restrictions/RestrictionModule.cs
+++ b/src/NzbDrone.Api/Restrictions/RestrictionModule.cs
@@ -1,4 +1,5 @@
using System.Collections.Generic;
+using FluentValidation;
using FluentValidation.Results;
using NzbDrone.Common.Extensions;
using NzbDrone.Core.Restrictions;
@@ -21,14 +22,12 @@ namespace Radarr.Http.RESTrictions
UpdateResource = UpdateRestriction;
DeleteResource = DeleteRestriction;
- SharedValidator.Custom(restriction =>
+ SharedValidator.RuleFor(r => r).Custom((restriction, context) =>
{
if (restriction.Ignored.IsNullOrWhiteSpace() && restriction.Required.IsNullOrWhiteSpace())
{
- return new ValidationFailure("", "Either 'Must contain' or 'Must not contain' is required");
+ context.AddFailure("Either 'Must contain' or 'Must not contain' is required");
}
-
- return null;
});
}
diff --git a/src/NzbDrone.Api/app.config b/src/NzbDrone.Api/app.config
deleted file mode 100644
index e0990894c..000000000
--- a/src/NzbDrone.Api/app.config
+++ /dev/null
@@ -1,31 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/NzbDrone.App.Test/License.txt b/src/NzbDrone.App.Test/License.txt
deleted file mode 100644
index 5ead6991a..000000000
--- a/src/NzbDrone.App.Test/License.txt
+++ /dev/null
@@ -1,22 +0,0 @@
- Copyright (c) 2010 Darren Cauthon
-
- Permission is hereby granted, free of charge, to any person
- obtaining a copy of this software and associated documentation
- files (the "Software"), to deal in the Software without
- restriction, including without limitation the rights to use,
- copy, modify, merge, publish, distribute, sublicense, and/or sell
- copies of the Software, and to permit persons to whom the
- Software is furnished to do so, subject to the following
- conditions:
-
- The above copyright notice and this permission notice shall be
- included in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
- OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
- HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
- WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
- OTHER DEALINGS IN THE SOFTWARE.
diff --git a/src/NzbDrone.App.Test/NzbDrone.Host.Test.csproj b/src/NzbDrone.App.Test/NzbDrone.Host.Test.csproj
deleted file mode 100644
index ef6872a6d..000000000
--- a/src/NzbDrone.App.Test/NzbDrone.Host.Test.csproj
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-
- Debug
- x86
- 8.0.30703
- 2.0
- {C0EA1A40-91AD-4EEB-BD16-2DDDEBD20AE5}
- Library
- Properties
- NzbDrone.App.Test
- Radarr.App.Test
- v4.6.1
- 512
- ..\
- true
-
-
-
- true
- bin\x86\Debug\
- DEBUG;TRACE
- full
- x86
- prompt
- MinimumRecommendedRules.ruleset
- 4
- false
- false
-
-
- bin\x86\Release\
- TRACE
- true
- pdbonly
- x86
- prompt
- MinimumRecommendedRules.ruleset
- 4
- false
-
-
-
- ..\packages\NBuilder.4.0.0\lib\net40\FizzWare.NBuilder.dll
-
-
- ..\packages\FluentAssertions.4.18.0\lib\net45\FluentAssertions.dll
-
-
- ..\packages\FluentAssertions.4.18.0\lib\net45\FluentAssertions.Core.dll
-
-
-
- ..\packages\Moq.4.0.10827\lib\NET40\Moq.dll
-
-
- ..\packages\NLog.4.6.6\lib\net45\NLog.dll
-
-
- ..\packages\NUnit.3.5.0\lib\net45\nunit.framework.dll
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- App.config
-
-
-
-
-
- {F2BE0FDF-6E47-4827-A420-DD4EF82407F8}
- NzbDrone.Common
-
-
- {FF5EE3B6-913B-47CE-9CEB-11C51B4E1205}
- NzbDrone.Core
-
-
- {95C11A9E-56ED-456A-8447-2C89C1139266}
- NzbDrone.Host
-
-
- {CADDFCE0-7509-4430-8364-2074E1EEFCA2}
- NzbDrone.Test.Common
-
-
-
-
- sqlite3.dll
- Always
-
-
-
-
-
-
-
-
-
-
-
- xcopy /s /y "$(SolutionDir)\..\_output\Radarr.Mono.*" "$(TargetDir)"
- xcopy /s /y "$(SolutionDir)\..\_output\Radarr.Windows.*" "$(TargetDir)"
-
-
- cp -rv $(SolutionDir)\..\_output\Radarr.Mono.* $(TargetDir)
- cp -rv $(SolutionDir)\..\_output\Radarr.Windows.* $(TargetDir)
-
-
-
-
\ No newline at end of file
diff --git a/src/NzbDrone.App.Test/Properties/AssemblyInfo.cs b/src/NzbDrone.App.Test/Properties/AssemblyInfo.cs
deleted file mode 100644
index 5de39c742..000000000
--- a/src/NzbDrone.App.Test/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-using System.Reflection;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("Radarr.App.Test")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("Microsoft")]
-[assembly: AssemblyProduct("Radarr.App.Test")]
-[assembly: AssemblyCopyright("Copyright © Microsoft 2011")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("b47d34ef-05e8-4826-8a57-9dd05106c964")]
-
diff --git a/src/NzbDrone.App.Test/app.config b/src/NzbDrone.App.Test/app.config
deleted file mode 100644
index a6a2b7fa9..000000000
--- a/src/NzbDrone.App.Test/app.config
+++ /dev/null
@@ -1,2 +0,0 @@
-
-
\ No newline at end of file
diff --git a/src/NzbDrone.App.Test/packages.config b/src/NzbDrone.App.Test/packages.config
deleted file mode 100644
index 6e0d6fabc..000000000
--- a/src/NzbDrone.App.Test/packages.config
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/NzbDrone.Automation.Test/NzbDrone.Automation.Test.csproj b/src/NzbDrone.Automation.Test/NzbDrone.Automation.Test.csproj
deleted file mode 100644
index cf1b7fac3..000000000
--- a/src/NzbDrone.Automation.Test/NzbDrone.Automation.Test.csproj
+++ /dev/null
@@ -1,108 +0,0 @@
-
-
-
-
- Debug
- x86
- {CC26800D-F67E-464B-88DE-8EB1A0C227A3}
- Library
- Properties
- NzbDrone.Automation.Test
- Radarr.Automation.Test
- v4.6.1
- 512
- ..\
- true
- 12.0.0
- 2.0
-
-
-
- true
- bin\x86\Debug\
- DEBUG;TRACE
- full
- x86
- prompt
- MinimumRecommendedRules.ruleset
- 4
- false
- false
-
-
- bin\x86\Release\
- TRACE
- true
- pdbonly
- x86
- prompt
- MinimumRecommendedRules.ruleset
- 4
- false
-
-
-
- ..\packages\FluentAssertions.4.18.0\lib\net45\FluentAssertions.dll
-
-
- ..\packages\FluentAssertions.4.18.0\lib\net45\FluentAssertions.Core.dll
-
-
- ..\packages\NLog.4.6.6\lib\net45\NLog.dll
-
-
- ..\packages\NUnit.3.5.0\lib\net45\nunit.framework.dll
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ..\packages\Selenium.WebDriver.3.2.0\lib\net40\WebDriver.dll
-
-
- ..\packages\Selenium.Support.3.2.0\lib\net40\WebDriver.Support.dll
-
-
-
-
-
-
-
-
-
-
-
- {F2BE0FDF-6E47-4827-A420-DD4EF82407F8}
- NzbDrone.Common
-
-
- {CADDFCE0-7509-4430-8364-2074E1EEFCA2}
- NzbDrone.Test.Common
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/NzbDrone.Automation.Test/Properties/AssemblyInfo.cs b/src/NzbDrone.Automation.Test/Properties/AssemblyInfo.cs
deleted file mode 100644
index 55fd2fdc9..000000000
--- a/src/NzbDrone.Automation.Test/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,22 +0,0 @@
-using System.Reflection;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("Radarr.Automation.Test")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("Radarr.Automation.Test")]
-[assembly: AssemblyCopyright("Copyright © 2013")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("6b8945f5-f5b5-4729-865d-f958fbd673d9")]
diff --git a/src/NzbDrone.Automation.Test/Radarr.Automation.Test.csproj b/src/NzbDrone.Automation.Test/Radarr.Automation.Test.csproj
new file mode 100644
index 000000000..08ec8b7e6
--- /dev/null
+++ b/src/NzbDrone.Automation.Test/Radarr.Automation.Test.csproj
@@ -0,0 +1,12 @@
+
+
+ net462
+ x86
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/NzbDrone.Automation.Test/app.config b/src/NzbDrone.Automation.Test/app.config
index 7b37fbbaa..85da475f2 100644
--- a/src/NzbDrone.Automation.Test/app.config
+++ b/src/NzbDrone.Automation.Test/app.config
@@ -1,27 +1,8 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
\ No newline at end of file
diff --git a/src/NzbDrone.Automation.Test/packages.config b/src/NzbDrone.Automation.Test/packages.config
deleted file mode 100644
index a6aa0a986..000000000
--- a/src/NzbDrone.Automation.Test/packages.config
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/NzbDrone.Common.Test/Http/HttpHeaderFixture.cs b/src/NzbDrone.Common.Test/Http/HttpHeaderFixture.cs
index 8abdcf6e8..e0a22072e 100644
--- a/src/NzbDrone.Common.Test/Http/HttpHeaderFixture.cs
+++ b/src/NzbDrone.Common.Test/Http/HttpHeaderFixture.cs
@@ -35,7 +35,7 @@ namespace NzbDrone.Common.Test.Http
var httpheader = new HttpHeader(headers);
Action action = () => httpheader.GetEncodingFromContentType();
- action.ShouldThrow();
+ action.Should().Throw();
}
[Test]
diff --git a/src/NzbDrone.Common.Test/License.txt b/src/NzbDrone.Common.Test/License.txt
deleted file mode 100644
index 5ead6991a..000000000
--- a/src/NzbDrone.Common.Test/License.txt
+++ /dev/null
@@ -1,22 +0,0 @@
- Copyright (c) 2010 Darren Cauthon
-
- Permission is hereby granted, free of charge, to any person
- obtaining a copy of this software and associated documentation
- files (the "Software"), to deal in the Software without
- restriction, including without limitation the rights to use,
- copy, modify, merge, publish, distribute, sublicense, and/or sell
- copies of the Software, and to permit persons to whom the
- Software is furnished to do so, subject to the following
- conditions:
-
- The above copyright notice and this permission notice shall be
- included in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
- OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
- HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
- WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
- OTHER DEALINGS IN THE SOFTWARE.
diff --git a/src/NzbDrone.Common.Test/NzbDrone.Common.Test.csproj b/src/NzbDrone.Common.Test/NzbDrone.Common.Test.csproj
deleted file mode 100644
index 3a4cee8d0..000000000
--- a/src/NzbDrone.Common.Test/NzbDrone.Common.Test.csproj
+++ /dev/null
@@ -1,172 +0,0 @@
-
-
-
- Debug
- x86
- 8.0.30703
- 2.0
- {BEC74619-DDBB-4FBA-B517-D3E20AFC9997}
- Library
- Properties
- NzbDrone.Common.Test
- Radarr.Common.Test
- v4.6.1
- 512
- ..\
- true
-
-
-
- true
- bin\x86\Debug\
- DEBUG;TRACE
- full
- x86
- prompt
- MinimumRecommendedRules.ruleset
- 4
- false
- false
-
-
- bin\x86\Release\
- TRACE
- true
- pdbonly
- x86
- prompt
- MinimumRecommendedRules.ruleset
- 4
- false
-
-
-
- ..\packages\FluentAssertions.4.18.0\lib\net45\FluentAssertions.dll
-
-
- ..\packages\FluentAssertions.4.18.0\lib\net45\FluentAssertions.Core.dll
-
-
- ..\packages\Moq.4.0.10827\lib\NET40\Moq.dll
-
-
- ..\packages\NLog.4.6.6\lib\net45\NLog.dll
-
-
- ..\packages\NUnit.3.5.0\lib\net45\nunit.framework.dll
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- App.config
-
-
-
-
-
- {F2BE0FDF-6E47-4827-A420-DD4EF82407F8}
- NzbDrone.Common
-
-
- {FF5EE3B6-913B-47CE-9CEB-11C51B4E1205}
- NzbDrone.Core
-
-
- {95C11A9E-56ED-456A-8447-2C89C1139266}
- NzbDrone.Host
-
-
- {15ad7579-a314-4626-b556-663f51d97cd1}
- NzbDrone.Mono
-
-
- {911284d3-f130-459e-836c-2430b6fbf21d}
- NzbDrone.Windows
-
-
- {D12F7F2F-8A3C-415F-88FA-6DD061A84869}
- NzbDrone
-
-
- {CADDFCE0-7509-4430-8364-2074E1EEFCA2}
- NzbDrone.Test.Common
-
-
- {FAFB5948-A222-4CF6-AD14-026BE7564802}
- NzbDrone.Test.Dummy
-
-
-
-
-
-
-
-
-
-
- xcopy /s /y "$(SolutionDir)\ExternalModules\CurlSharp\libs\i386\*" "$(TargetDir)"
-
-
-
\ No newline at end of file
diff --git a/src/NzbDrone.Common.Test/Radarr.Common.Test.csproj b/src/NzbDrone.Common.Test/Radarr.Common.Test.csproj
new file mode 100644
index 000000000..5c5418813
--- /dev/null
+++ b/src/NzbDrone.Common.Test/Radarr.Common.Test.csproj
@@ -0,0 +1,19 @@
+
+
+ net462
+ x86
+
+
+
+
+
+
+
+
+
+
+
+ PreserveNewest
+
+
+
\ No newline at end of file
diff --git a/src/NzbDrone.Common.Test/WebClientTests.cs b/src/NzbDrone.Common.Test/WebClientTests.cs
index 234e26275..9380a4a7a 100644
--- a/src/NzbDrone.Common.Test/WebClientTests.cs
+++ b/src/NzbDrone.Common.Test/WebClientTests.cs
@@ -1,5 +1,4 @@
-
-using System;
+using System;
using FluentAssertions;
using NUnit.Framework;
using NzbDrone.Common.Http;
@@ -32,8 +31,8 @@ namespace NzbDrone.Common.Test
[TestCase("http://")]
public void DownloadString_should_throw_on_not_supported_string_mono(string url)
{
- MonoOnly();
- Assert.Throws(() => Subject.DownloadString(url));
+ Action action = () => Subject.DownloadString(url);
+ action.Should().Throw();
ExceptionVerification.ExpectedWarns(1);
}
}
diff --git a/src/NzbDrone.Common.Test/packages.config b/src/NzbDrone.Common.Test/packages.config
deleted file mode 100644
index eb21f7cae..000000000
--- a/src/NzbDrone.Common.Test/packages.config
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/NzbDrone.Common/NzbDrone.Common.csproj b/src/NzbDrone.Common/NzbDrone.Common.csproj
deleted file mode 100644
index 46968b454..000000000
--- a/src/NzbDrone.Common/NzbDrone.Common.csproj
+++ /dev/null
@@ -1,282 +0,0 @@
-
-
-
- Debug
- x86
- 8.0.30703
- 2.0
- {F2BE0FDF-6E47-4827-A420-DD4EF82407F8}
- Library
- Properties
- NzbDrone.Common
- Radarr.Common
- v4.6.1
- 512
- ..\
- true
-
-
-
-
- true
- ..\..\_output\
- DEBUG;TRACE
- full
- x86
- prompt
- MinimumRecommendedRules.ruleset
- 4
- false
- false
-
-
- ..\..\_output\
- TRACE
- true
- pdbonly
- x86
- prompt
- MinimumRecommendedRules.ruleset
- 4
- false
-
-
-
- ..\packages\ICSharpCode.SharpZipLib.Patched.0.86.5\lib\net20\ICSharpCode.SharpZipLib.dll
-
-
- ..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll
-
-
- ..\packages\NLog.4.6.6\lib\net45\NLog.dll
-
-
- ..\packages\DotNet4.SocksProxy.1.3.4.0\lib\net40\Org.Mentalis.dll
-
-
- ..\packages\Sentry.1.2.0\lib\net461\Sentry.dll
-
-
- ..\packages\Sentry.PlatformAbstractions.1.0.0\lib\net45\Sentry.PlatformAbstractions.dll
-
-
- ..\packages\Sentry.Protocol.1.0.6\lib\net46\Sentry.Protocol.dll
-
-
- ..\packages\DotNet4.SocksProxy.1.3.4.0\lib\net40\SocksWebProxy.dll
-
-
-
- ..\packages\System.Collections.Immutable.1.5.0\lib\netstandard2.0\System.Collections.Immutable.dll
-
-
-
-
-
-
-
-
- ..\packages\System.Runtime.InteropServices.RuntimeInformation.4.3.0\lib\net45\System.Runtime.InteropServices.RuntimeInformation.dll
- True
- True
-
-
-
-
-
-
-
- ..\packages\System.ValueTuple.4.5.0\lib\portable-net40+sl4+win8+wp8\System.ValueTuple.dll
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Component
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Component
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Always
-
-
- Designer
-
-
-
-
-
-
-
-
-
-
- {74420a79-cc16-442c-8b1e-7c1b913844f0}
- CurlSharp
-
-
-
-
-
\ No newline at end of file
diff --git a/src/NzbDrone.Common/Properties/AssemblyInfo.cs b/src/NzbDrone.Common/Properties/AssemblyInfo.cs
deleted file mode 100644
index c2b1a88d7..000000000
--- a/src/NzbDrone.Common/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,11 +0,0 @@
-using System.Reflection;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("Radarr.Common")]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("b6eaa144-e13b-42e5-a738-c60d89c0f728")]
-
diff --git a/src/NzbDrone.Common/Properties/SharedAssemblyInfo.cs b/src/NzbDrone.Common/Properties/SharedAssemblyInfo.cs
deleted file mode 100644
index e2dbb8e0a..000000000
--- a/src/NzbDrone.Common/Properties/SharedAssemblyInfo.cs
+++ /dev/null
@@ -1,17 +0,0 @@
-using System.Reflection;
-using System.Runtime.InteropServices;
-
-[assembly: AssemblyConfiguration("debug")]
-
-[assembly: AssemblyCompany("radarr.video")]
-[assembly: AssemblyProduct("Radarr")]
-[assembly: AssemblyVersion("10.0.0.*")]
-[assembly: AssemblyCopyright("GNU General Public v3")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-
-[assembly: ComVisible(false)]
diff --git a/src/NzbDrone.Common/Radarr.Common.csproj b/src/NzbDrone.Common/Radarr.Common.csproj
new file mode 100644
index 000000000..ae6bae20a
--- /dev/null
+++ b/src/NzbDrone.Common/Radarr.Common.csproj
@@ -0,0 +1,32 @@
+
+
+ net462
+ x86
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ True
+ True
+ ExceptionMessages.resx
+
+
+ ResXFileCodeGenerator
+ ExceptionMessages.Designer.cs
+
+
+
\ No newline at end of file
diff --git a/src/NzbDrone.Common/Serializer/Json.cs b/src/NzbDrone.Common/Serializer/Json.cs
index 90023e8f3..fe05b01a4 100644
--- a/src/NzbDrone.Common/Serializer/Json.cs
+++ b/src/NzbDrone.Common/Serializer/Json.cs
@@ -29,7 +29,7 @@ namespace NzbDrone.Common.Serializer
ContractResolver = new CamelCasePropertyNamesContractResolver()
};
- serializerSettings.Converters.Add(new StringEnumConverter { CamelCaseText = true });
+ serializerSettings.Converters.Add(new StringEnumConverter { NamingStrategy = new CamelCaseNamingStrategy() });
serializerSettings.Converters.Add(new VersionConverter());
serializerSettings.Converters.Add(new HttpUriConverter());
diff --git a/src/NzbDrone.Common/app.config b/src/NzbDrone.Common/app.config
deleted file mode 100644
index 00f6a18fd..000000000
--- a/src/NzbDrone.Common/app.config
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/NzbDrone.Common/packages.config b/src/NzbDrone.Common/packages.config
deleted file mode 100644
index 8e54b5203..000000000
--- a/src/NzbDrone.Common/packages.config
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/NzbDrone.Console/NzbDrone.Console.csproj b/src/NzbDrone.Console/NzbDrone.Console.csproj
deleted file mode 100644
index dd30ac759..000000000
--- a/src/NzbDrone.Console/NzbDrone.Console.csproj
+++ /dev/null
@@ -1,155 +0,0 @@
-
-
-
- Debug
- x86
- 8.0.30703
- 2.0
- {3DCA7B58-B8B3-49AC-9D9E-56F4A0460976}
- Exe
- Properties
- NzbDrone.Console
- Radarr.Console
- v4.6.1
- 512
-
-
- false
- publish\
- true
- Disk
- false
- Foreground
- 7
- Days
- false
- false
- true
- 0
- 1.0.0.%2a
- false
- true
- ..\
- true
-
-
- x86
- true
- full
- false
- ..\..\_output\
- DEBUG;TRACE
- prompt
- 4
- true
- BasicCorrectnessRules.ruleset
- false
-
-
- x86
- pdbonly
- true
- ..\..\_output\
- TRACE
- prompt
- 4
- false
-
-
- Radarr.ico
-
-
- NzbDrone.Console.ConsoleApp
-
-
- OnBuildSuccess
-
-
-
-
- ..\packages\Microsoft.Owin.3.1.0\lib\net45\Microsoft.Owin.dll
-
-
- ..\packages\Microsoft.Owin.Hosting.3.1.0\lib\net45\Microsoft.Owin.Hosting.dll
-
-
- ..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll
-
-
- ..\packages\NLog.4.6.6\lib\net45\NLog.dll
-
-
- ..\packages\Owin.1.0\lib\net40\Owin.dll
-
-
-
-
-
-
-
-
-
-
-
-
-
- Properties\SharedAssemblyInfo.cs
-
-
-
-
-
-
-
- False
- Microsoft .NET Framework 4 %28x86 and x64%29
- true
-
-
- False
- .NET Framework 3.5 SP1 Client Profile
- false
-
-
- False
- .NET Framework 3.5 SP1
- false
-
-
- False
- Windows Installer 3.1
- true
-
-
-
-
- {F2BE0FDF-6E47-4827-A420-DD4EF82407F8}
- NzbDrone.Common
-
-
- {95C11A9E-56ED-456A-8447-2C89C1139266}
- NzbDrone.Host
-
-
-
-
- app.config
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/NzbDrone.Console/Properties/AssemblyInfo.cs b/src/NzbDrone.Console/Properties/AssemblyInfo.cs
deleted file mode 100644
index afbef0cae..000000000
--- a/src/NzbDrone.Console/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-using System.Reflection;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-
-[assembly: AssemblyTitle("Radarr.Host")]
-[assembly: Guid("67AADCD9-89AA-4D95-8281-3193740E70E5")]
diff --git a/src/NzbDrone.Console/Radarr.Console.csproj b/src/NzbDrone.Console/Radarr.Console.csproj
new file mode 100644
index 000000000..7478e5fe0
--- /dev/null
+++ b/src/NzbDrone.Console/Radarr.Console.csproj
@@ -0,0 +1,13 @@
+
+
+ Exe
+ net462
+ x86
+
+ ..\NzbDrone.Host\Radarr.ico
+ app.manifest
+
+
+
+
+
\ No newline at end of file
diff --git a/src/NzbDrone.Console/app.config b/src/NzbDrone.Console/app.config
index a6a2b7fa9..ee76aa22d 100644
--- a/src/NzbDrone.Console/app.config
+++ b/src/NzbDrone.Console/app.config
@@ -1,2 +1,14 @@
-
\ No newline at end of file
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/NzbDrone.Console/app.manifest b/src/NzbDrone.Console/app.manifest
new file mode 100644
index 000000000..7fc477bdf
--- /dev/null
+++ b/src/NzbDrone.Console/app.manifest
@@ -0,0 +1,31 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ true
+
+
+
\ No newline at end of file
diff --git a/src/NzbDrone.Console/packages.config b/src/NzbDrone.Console/packages.config
deleted file mode 100644
index aa3d1d866..000000000
--- a/src/NzbDrone.Console/packages.config
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/NzbDrone.Core.Test/Datastore/BasicRepositoryFixture.cs b/src/NzbDrone.Core.Test/Datastore/BasicRepositoryFixture.cs
index 1a1a900c6..e4775e037 100644
--- a/src/NzbDrone.Core.Test/Datastore/BasicRepositoryFixture.cs
+++ b/src/NzbDrone.Core.Test/Datastore/BasicRepositoryFixture.cs
@@ -64,7 +64,7 @@ namespace NzbDrone.Core.Test.Datastore
Subject.Insert(_basicType);
var storeObject = Subject.Get(_basicType.Id);
- storeObject.ShouldBeEquivalentTo(_basicType, o=>o.IncludingAllRuntimeProperties());
+ storeObject.Should().BeEquivalentTo(_basicType, o=>o.IncludingAllRuntimeProperties());
}
[Test]
diff --git a/src/NzbDrone.Core.Test/Datastore/DatabaseRelationshipFixture.cs b/src/NzbDrone.Core.Test/Datastore/DatabaseRelationshipFixture.cs
index ee1a7eb3a..27810c21d 100644
--- a/src/NzbDrone.Core.Test/Datastore/DatabaseRelationshipFixture.cs
+++ b/src/NzbDrone.Core.Test/Datastore/DatabaseRelationshipFixture.cs
@@ -41,7 +41,7 @@ namespace NzbDrone.Core.Test.Datastore
var loadedEpisodeFile = loadedEpisode.MovieFile;
loadedEpisodeFile.Should().NotBeNull();
- loadedEpisodeFile.ShouldBeEquivalentTo(episodeFile,
+ loadedEpisodeFile.Should().BeEquivalentTo(episodeFile,
options => options
.IncludingAllRuntimeProperties()
.Excluding(c => c.DateAdded)
diff --git a/src/NzbDrone.Core.Test/Datastore/Migration/149_regex_required_tagsFixture.cs b/src/NzbDrone.Core.Test/Datastore/Migration/149_regex_required_tagsFixture.cs
index e1a3c1774..cdaf60fed 100644
--- a/src/NzbDrone.Core.Test/Datastore/Migration/149_regex_required_tagsFixture.cs
+++ b/src/NzbDrone.Core.Test/Datastore/Migration/149_regex_required_tagsFixture.cs
@@ -42,7 +42,7 @@ namespace NzbDrone.Core.Test.Datastore.Migration
var convertedTags = items.First().DeserializedTags;
convertedTags.Should().HaveCount(1);
- convertedTags.First().ShouldBeEquivalentTo(converted);
+ convertedTags.First().Should().BeEquivalentTo(converted);
}
[Test]
diff --git a/src/NzbDrone.Core.Test/Datastore/Migration/150_fix_format_tags_double_underscoreFixture.cs b/src/NzbDrone.Core.Test/Datastore/Migration/150_fix_format_tags_double_underscoreFixture.cs
index f329f18a6..f052a03d6 100644
--- a/src/NzbDrone.Core.Test/Datastore/Migration/150_fix_format_tags_double_underscoreFixture.cs
+++ b/src/NzbDrone.Core.Test/Datastore/Migration/150_fix_format_tags_double_underscoreFixture.cs
@@ -40,7 +40,7 @@ namespace NzbDrone.Core.Test.Datastore.Migration
var convertedTags = items.First().DeserializedTags;
convertedTags.Should().HaveCount(1);
- convertedTags.First().ShouldBeEquivalentTo(converted);
+ convertedTags.First().Should().BeEquivalentTo(converted);
}
private List QueryItems(IDirectDataMapper db)
diff --git a/src/NzbDrone.Core.Test/IndexerTests/TorrentRssIndexerTests/TorrentRssParserFactoryFixture.cs b/src/NzbDrone.Core.Test/IndexerTests/TorrentRssIndexerTests/TorrentRssParserFactoryFixture.cs
index 2e8e9aace..0ed86b3c1 100644
--- a/src/NzbDrone.Core.Test/IndexerTests/TorrentRssIndexerTests/TorrentRssParserFactoryFixture.cs
+++ b/src/NzbDrone.Core.Test/IndexerTests/TorrentRssIndexerTests/TorrentRssParserFactoryFixture.cs
@@ -118,7 +118,7 @@ namespace NzbDrone.Core.Test.IndexerTests.TorrentRssIndexerTests
var detection2 = Subject.GetParser(_indexerSettings1);
- detection1.ShouldBeEquivalentTo(detection2);
+ detection1.Should().BeEquivalentTo(detection2);
VerifyDetectionCount(1);
}
diff --git a/src/NzbDrone.Core.Test/IndexerTests/TorrentRssIndexerTests/TorrentRssSettingsDetectorFixture.cs b/src/NzbDrone.Core.Test/IndexerTests/TorrentRssIndexerTests/TorrentRssSettingsDetectorFixture.cs
index 9a3aac3ef..2f34f1d00 100644
--- a/src/NzbDrone.Core.Test/IndexerTests/TorrentRssIndexerTests/TorrentRssSettingsDetectorFixture.cs
+++ b/src/NzbDrone.Core.Test/IndexerTests/TorrentRssIndexerTests/TorrentRssSettingsDetectorFixture.cs
@@ -37,7 +37,7 @@ namespace NzbDrone.Core.Test.IndexerTests.TorrentRssIndexerTests
var settings = Subject.Detect(_indexerSettings);
- settings.ShouldBeEquivalentTo(new TorrentRssIndexerParserSettings
+ settings.Should().BeEquivalentTo(new TorrentRssIndexerParserSettings
{
UseEZTVFormat = true,
UseEnclosureUrl = false,
@@ -55,7 +55,7 @@ namespace NzbDrone.Core.Test.IndexerTests.TorrentRssIndexerTests
var settings = Subject.Detect(_indexerSettings);
- settings.ShouldBeEquivalentTo(new TorrentRssIndexerParserSettings
+ settings.Should().BeEquivalentTo(new TorrentRssIndexerParserSettings
{
UseEZTVFormat = false,
UseEnclosureUrl = false,
@@ -73,7 +73,7 @@ namespace NzbDrone.Core.Test.IndexerTests.TorrentRssIndexerTests
var settings = Subject.Detect(_indexerSettings);
- settings.ShouldBeEquivalentTo(new TorrentRssIndexerParserSettings
+ settings.Should().BeEquivalentTo(new TorrentRssIndexerParserSettings
{
UseEZTVFormat = false,
UseEnclosureUrl = false,
@@ -93,7 +93,7 @@ namespace NzbDrone.Core.Test.IndexerTests.TorrentRssIndexerTests
var settings = Subject.Detect(_indexerSettings);
- settings.ShouldBeEquivalentTo(new TorrentRssIndexerParserSettings
+ settings.Should().BeEquivalentTo(new TorrentRssIndexerParserSettings
{
UseEZTVFormat = false,
UseEnclosureUrl = true,
@@ -111,7 +111,7 @@ namespace NzbDrone.Core.Test.IndexerTests.TorrentRssIndexerTests
var settings = Subject.Detect(_indexerSettings);
- settings.ShouldBeEquivalentTo(new TorrentRssIndexerParserSettings
+ settings.Should().BeEquivalentTo(new TorrentRssIndexerParserSettings
{
UseEZTVFormat = false,
UseEnclosureUrl = true,
@@ -129,7 +129,7 @@ namespace NzbDrone.Core.Test.IndexerTests.TorrentRssIndexerTests
var settings = Subject.Detect(_indexerSettings);
- settings.ShouldBeEquivalentTo(new TorrentRssIndexerParserSettings
+ settings.Should().BeEquivalentTo(new TorrentRssIndexerParserSettings
{
UseEZTVFormat = false,
UseEnclosureUrl = false,
@@ -149,7 +149,7 @@ namespace NzbDrone.Core.Test.IndexerTests.TorrentRssIndexerTests
var settings = Subject.Detect(_indexerSettings);
- settings.ShouldBeEquivalentTo(new TorrentRssIndexerParserSettings
+ settings.Should().BeEquivalentTo(new TorrentRssIndexerParserSettings
{
UseEZTVFormat = false,
UseEnclosureUrl = true,
@@ -169,7 +169,7 @@ namespace NzbDrone.Core.Test.IndexerTests.TorrentRssIndexerTests
var settings = Subject.Detect(_indexerSettings);
- settings.ShouldBeEquivalentTo(new TorrentRssIndexerParserSettings
+ settings.Should().BeEquivalentTo(new TorrentRssIndexerParserSettings
{
UseEZTVFormat = false,
UseEnclosureUrl = true,
@@ -189,7 +189,7 @@ namespace NzbDrone.Core.Test.IndexerTests.TorrentRssIndexerTests
var settings = Subject.Detect(_indexerSettings);
- settings.ShouldBeEquivalentTo(new TorrentRssIndexerParserSettings
+ settings.Should().BeEquivalentTo(new TorrentRssIndexerParserSettings
{
UseEZTVFormat = false,
UseEnclosureUrl = true,
@@ -209,7 +209,7 @@ namespace NzbDrone.Core.Test.IndexerTests.TorrentRssIndexerTests
var settings = Subject.Detect(_indexerSettings);
- settings.ShouldBeEquivalentTo(new TorrentRssIndexerParserSettings
+ settings.Should().BeEquivalentTo(new TorrentRssIndexerParserSettings
{
UseEZTVFormat = false,
UseEnclosureUrl = false,
@@ -242,7 +242,7 @@ namespace NzbDrone.Core.Test.IndexerTests.TorrentRssIndexerTests
var settings = Subject.Detect(_indexerSettings);
- settings.ShouldBeEquivalentTo(new TorrentRssIndexerParserSettings
+ settings.Should().BeEquivalentTo(new TorrentRssIndexerParserSettings
{
UseEZTVFormat = false,
UseEnclosureUrl = true,
diff --git a/src/NzbDrone.Core.Test/MediaCoverTests/ImageResizerFixture.cs b/src/NzbDrone.Core.Test/MediaCoverTests/ImageResizerFixture.cs
index 729bf1d37..a7d9639f7 100644
--- a/src/NzbDrone.Core.Test/MediaCoverTests/ImageResizerFixture.cs
+++ b/src/NzbDrone.Core.Test/MediaCoverTests/ImageResizerFixture.cs
@@ -4,13 +4,12 @@ using FluentAssertions;
using Moq;
using NUnit.Framework;
using NzbDrone.Common.Disk;
-using NzbDrone.Core.MediaCover;
using NzbDrone.Core.Test.Framework;
namespace NzbDrone.Core.Test.MediaCoverTests
{
[TestFixture]
- public class ImageResizerFixture : CoreTest
+ public class ImageResizerFixture : CoreTest
{
[SetUp]
public void SetUp()
diff --git a/src/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj b/src/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj
deleted file mode 100644
index 0cc3ffaeb..000000000
--- a/src/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj
+++ /dev/null
@@ -1,627 +0,0 @@
-
-
-
- Debug
- x86
- 8.0.30703
- 2.0
- {193ADD3B-792B-4173-8E4C-5A3F8F0237F0}
- Library
- Properties
- NzbDrone.Core.Test
- Radarr.Core.Test
- v4.6.1
- 512
- ..\
- true
-
-
-
- true
- bin\x86\Debug\
- DEBUG;TRACE
- full
- x86
- prompt
- MinimumRecommendedRules.ruleset
- 4
- false
- false
-
-
- bin\x86\Release\
- TRACE
- true
- pdbonly
- x86
- prompt
- MinimumRecommendedRules.ruleset
- 4
- false
-
-
- OnBuildSuccess
-
-
-
- ..\packages\AutoMoq.1.8.1.0\lib\net40\AutoMoq.dll
-
-
- ..\packages\NBuilder.4.0.0\lib\net40\FizzWare.NBuilder.dll
-
-
- ..\packages\FluentAssertions.4.18.0\lib\net45\FluentAssertions.dll
-
-
- ..\packages\FluentAssertions.4.18.0\lib\net45\FluentAssertions.Core.dll
-
-
- ..\packages\FluentMigrator.1.6.2\lib\40\FluentMigrator.dll
-
-
- ..\packages\FluentMigrator.Runner.1.6.2\lib\40\FluentMigrator.Runner.dll
-
-
- ..\packages\FluentValidation.6.2.1.0\lib\Net45\FluentValidation.dll
-
-
- ..\packages\CommonServiceLocator.1.3\lib\portable-net4+sl5+netcore45+wpa81+wp8\Microsoft.Practices.ServiceLocation.dll
-
-
- ..\packages\Unity.2.1.505.2\lib\NET35\Microsoft.Practices.Unity.dll
-
-
- ..\packages\Unity.2.1.505.2\lib\NET35\Microsoft.Practices.Unity.Configuration.dll
-
-
- ..\packages\Moq.4.0.10827\lib\NET40\Moq.dll
-
-
- ..\packages\NCrunch.Framework.1.46.0.9\lib\net35\NCrunch.Framework.dll
-
-
- ..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll
-
-
- ..\packages\NLog.4.6.6\lib\net45\NLog.dll
-
-
- ..\packages\NUnit.3.5.0\lib\net45\nunit.framework.dll
-
-
- ..\packages\Prowlin.0.9.4456.26422\lib\net40\Prowlin.dll
-
-
-
-
-
-
-
-
- ..\packages\System.ValueTuple.4.5.0\lib\portable-net40+sl4+win8+wp8\System.ValueTuple.dll
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Always
-
-
- Always
-
-
- Always
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Always
-
-
-
- Always
-
-
-
-
-
-
- {F6FC6BE7-0847-4817-A1ED-223DC647C3D7}
- Marr.Data
-
-
- {F2BE0FDF-6E47-4827-A420-DD4EF82407F8}
- NzbDrone.Common
-
-
- {ff5ee3b6-913b-47ce-9ceb-11c51b4e1205}
- NzbDrone.Core
-
-
- {7C2CC69F-5CA0-4E5C-85CB-983F9F6C3B36}
- NzbDrone.SignalR
-
-
- {CADDFCE0-7509-4430-8364-2074E1EEFCA2}
- NzbDrone.Test.Common
-
-
-
-
- Files\1024.png
- Always
-
-
- sqlite3.dll
- Always
-
-
- Always
-
-
- Always
- Designer
-
-
- PreserveNewest
-
-
- Always
-
-
- Always
-
-
- Always
-
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- PreserveNewest
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Designer
- Always
-
-
- Always
-
-
- Always
- Designer
-
-
- App.config
-
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
- Designer
-
-
- Always
-
-
- Always
-
-
- Always
- Designer
-
-
- Always
-
-
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/NzbDrone.Core.Test/ParserTests/ParsingServiceTests/AugmentersTests/AugmentWithFileSizeFixture.cs b/src/NzbDrone.Core.Test/ParserTests/ParsingServiceTests/AugmentersTests/AugmentWithFileSizeFixture.cs
index a9fa6cb62..e36441253 100644
--- a/src/NzbDrone.Core.Test/ParserTests/ParsingServiceTests/AugmentersTests/AugmentWithFileSizeFixture.cs
+++ b/src/NzbDrone.Core.Test/ParserTests/ParsingServiceTests/AugmentersTests/AugmentWithFileSizeFixture.cs
@@ -17,7 +17,7 @@ namespace NzbDrone.Core.Test.ParserTests.ParsingServiceTests.AugmentersTests
};
var movieInfo = Subject.AugmentMovieInfo(MovieInfo, localMovie);
- movieInfo.ExtraInfo["Size"].ShouldBeEquivalentTo(1500);
+ movieInfo.ExtraInfo["Size"].Should().BeEquivalentTo(1500);
}
}
}
diff --git a/src/NzbDrone.Core.Test/ParserTests/ParsingServiceTests/AugmentersTests/AugmentWithHistoryFixture.cs b/src/NzbDrone.Core.Test/ParserTests/ParsingServiceTests/AugmentersTests/AugmentWithHistoryFixture.cs
index ec050f795..8ec4d9bdb 100644
--- a/src/NzbDrone.Core.Test/ParserTests/ParsingServiceTests/AugmentersTests/AugmentWithHistoryFixture.cs
+++ b/src/NzbDrone.Core.Test/ParserTests/ParsingServiceTests/AugmentersTests/AugmentWithHistoryFixture.cs
@@ -74,7 +74,7 @@ namespace NzbDrone.Core.Test.ParserTests.ParsingServiceTests.AugmentersTests
{
var history = HistoryWithData("IndexerFlags", (IndexerFlags.PTP_Approved | IndexerFlags.PTP_Golden).ToString());
var movieInfo = Subject.AugmentMovieInfo(MovieInfo, history);
- movieInfo.ExtraInfo["IndexerFlags"].ShouldBeEquivalentTo(IndexerFlags.PTP_Golden | IndexerFlags.PTP_Approved);
+ movieInfo.ExtraInfo["IndexerFlags"].Should().BeEquivalentTo(IndexerFlags.PTP_Golden | IndexerFlags.PTP_Approved);
}
[Test]
@@ -82,7 +82,7 @@ namespace NzbDrone.Core.Test.ParserTests.ParsingServiceTests.AugmentersTests
{
var history = HistoryWithData("Size", 1500.ToString());
var movieInfo = Subject.AugmentMovieInfo(MovieInfo, history);
- movieInfo.ExtraInfo["Size"].ShouldBeEquivalentTo(1500);
+ movieInfo.ExtraInfo["Size"].Should().BeEquivalentTo(1500);
}
[Test]
diff --git a/src/NzbDrone.Core.Test/ParserTests/ParsingServiceTests/AugmentersTests/AugmentWithMediaInfoFixture.cs b/src/NzbDrone.Core.Test/ParserTests/ParsingServiceTests/AugmentersTests/AugmentWithMediaInfoFixture.cs
index 6b25187ab..f271597ad 100644
--- a/src/NzbDrone.Core.Test/ParserTests/ParsingServiceTests/AugmentersTests/AugmentWithMediaInfoFixture.cs
+++ b/src/NzbDrone.Core.Test/ParserTests/ParsingServiceTests/AugmentersTests/AugmentWithMediaInfoFixture.cs
@@ -42,8 +42,8 @@ namespace NzbDrone.Core.Test.ParserTests.ParsingServiceTests.AugmentersTests
};
var movieInfo = Subject.AugmentMovieInfo(MovieInfo, mediaInfo);
- movieInfo.Quality.Resolution.ShouldBeEquivalentTo(realResolution);
- movieInfo.Quality.QualityDetectionSource.ShouldBeEquivalentTo(QualityDetectionSource.MediaInfo);
+ movieInfo.Quality.Resolution.Should().BeEquivalentTo(realResolution);
+ movieInfo.Quality.QualityDetectionSource.Should().BeEquivalentTo(QualityDetectionSource.MediaInfo);
}
[TestCase(Resolution.R720P, Source.BLURAY, Resolution.R1080P, Modifier.BRDISK)]
@@ -82,8 +82,8 @@ namespace NzbDrone.Core.Test.ParserTests.ParsingServiceTests.AugmentersTests
};
var movieInfo = Subject.AugmentMovieInfo(MovieInfo, mediaInfo);
- movieInfo.Quality.Resolution.ShouldBeEquivalentTo(resolution);
- movieInfo.Quality.QualityDetectionSource.ShouldBeEquivalentTo(QualityDetectionSource.Name);
+ movieInfo.Quality.Resolution.Should().BeEquivalentTo(resolution);
+ movieInfo.Quality.QualityDetectionSource.Should().BeEquivalentTo(QualityDetectionSource.Name);
}
}
}
diff --git a/src/NzbDrone.Core.Test/ParserTests/ParsingServiceTests/AugmentersTests/AugmentWithReleaseInfoFixture.cs b/src/NzbDrone.Core.Test/ParserTests/ParsingServiceTests/AugmentersTests/AugmentWithReleaseInfoFixture.cs
index c1c85bae9..39c3986bf 100644
--- a/src/NzbDrone.Core.Test/ParserTests/ParsingServiceTests/AugmentersTests/AugmentWithReleaseInfoFixture.cs
+++ b/src/NzbDrone.Core.Test/ParserTests/ParsingServiceTests/AugmentersTests/AugmentWithReleaseInfoFixture.cs
@@ -62,7 +62,7 @@ namespace NzbDrone.Core.Test.ParserTests.ParsingServiceTests.AugmentersTests
};
var movieInfo = Subject.AugmentMovieInfo(MovieInfo, releaseInfo);
- movieInfo.ExtraInfo["Size"].ShouldBeEquivalentTo(1500);
+ movieInfo.ExtraInfo["Size"].Should().BeEquivalentTo(1500);
}
[Test]
@@ -76,7 +76,7 @@ namespace NzbDrone.Core.Test.ParserTests.ParsingServiceTests.AugmentersTests
MovieInfo.ExtraInfo["Size"] = 1600;
var movieInfo = Subject.AugmentMovieInfo(MovieInfo, releaseInfo);
- movieInfo.ExtraInfo["Size"].ShouldBeEquivalentTo(1600);
+ movieInfo.ExtraInfo["Size"].Should().BeEquivalentTo(1600);
}
[Test]
@@ -88,7 +88,7 @@ namespace NzbDrone.Core.Test.ParserTests.ParsingServiceTests.AugmentersTests
};
var movieInfo = Subject.AugmentMovieInfo(MovieInfo, releaseInfo);
- movieInfo.ExtraInfo["IndexerFlags"].ShouldBeEquivalentTo(IndexerFlags.PTP_Approved | IndexerFlags.PTP_Golden);
+ movieInfo.ExtraInfo["IndexerFlags"].Should().BeEquivalentTo(IndexerFlags.PTP_Approved | IndexerFlags.PTP_Golden);
}
}
diff --git a/src/NzbDrone.Core.Test/Properties/AssemblyInfo.cs b/src/NzbDrone.Core.Test/Properties/AssemblyInfo.cs
deleted file mode 100644
index a374beb28..000000000
--- a/src/NzbDrone.Core.Test/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,28 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-
-[assembly: AssemblyTitle("Radarr.Core.Test")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("Microsoft")]
-[assembly: AssemblyProduct("Radarr.Core.Test")]
-[assembly: AssemblyCopyright("Copyright © Microsoft 2010")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-
-[assembly: Guid("699aed1b-015e-4f0d-9c81-d5557b05d260")]
-
-[assembly: InternalsVisibleTo("Radarr.Core")]
\ No newline at end of file
diff --git a/src/NzbDrone.Core.Test/Radarr.Core.Test.csproj b/src/NzbDrone.Core.Test/Radarr.Core.Test.csproj
new file mode 100644
index 000000000..ca456f446
--- /dev/null
+++ b/src/NzbDrone.Core.Test/Radarr.Core.Test.csproj
@@ -0,0 +1,22 @@
+
+
+ net462
+ x86
+
+
+
+
+
+
+
+
+
+
+ Files\1024.png
+ PreserveNewest
+
+
+ PreserveNewest
+
+
+
\ No newline at end of file
diff --git a/src/NzbDrone.Core.Test/ThingiProvider/ProviderBaseFixture.cs b/src/NzbDrone.Core.Test/ThingiProvider/ProviderBaseFixture.cs
index db1e21c61..3b5460228 100644
--- a/src/NzbDrone.Core.Test/ThingiProvider/ProviderBaseFixture.cs
+++ b/src/NzbDrone.Core.Test/ThingiProvider/ProviderBaseFixture.cs
@@ -24,7 +24,7 @@ namespace NzbDrone.Core.Test.ThingiProvider
var storedSetting = (NewznabSettings)storedProvider.Settings;
- storedSetting.ShouldBeEquivalentTo(newznabSettings, o=>o.IncludingAllRuntimeProperties());
+ storedSetting.Should().BeEquivalentTo(newznabSettings, o=>o.IncludingAllRuntimeProperties());
}
}
}
\ No newline at end of file
diff --git a/src/NzbDrone.Core.Test/ThingiProviderTests/ProviderBaseFixture.cs b/src/NzbDrone.Core.Test/ThingiProviderTests/ProviderBaseFixture.cs
index a3a5a0c51..7de6c61b8 100644
--- a/src/NzbDrone.Core.Test/ThingiProviderTests/ProviderBaseFixture.cs
+++ b/src/NzbDrone.Core.Test/ThingiProviderTests/ProviderBaseFixture.cs
@@ -23,7 +23,7 @@ namespace NzbDrone.Core.Test.ThingiProviderTests
var storedSetting = (NewznabSettings)storedProvider.Settings;
- storedSetting.ShouldBeEquivalentTo(newznabSettings, o=>o.IncludingAllRuntimeProperties());
+ storedSetting.Should().BeEquivalentTo(newznabSettings, o=>o.IncludingAllRuntimeProperties());
}
}
}
diff --git a/src/NzbDrone.Core.Test/packages.config b/src/NzbDrone.Core.Test/packages.config
deleted file mode 100644
index e0e9379bc..000000000
--- a/src/NzbDrone.Core.Test/packages.config
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/NzbDrone.Core/App.config b/src/NzbDrone.Core/App.config
deleted file mode 100644
index 09d8f087e..000000000
--- a/src/NzbDrone.Core/App.config
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/NzbDrone.Core/Datastore/Converters/EmbeddedDocumentConverter.cs b/src/NzbDrone.Core/Datastore/Converters/EmbeddedDocumentConverter.cs
index d5321d794..d2b9146f2 100644
--- a/src/NzbDrone.Core/Datastore/Converters/EmbeddedDocumentConverter.cs
+++ b/src/NzbDrone.Core/Datastore/Converters/EmbeddedDocumentConverter.cs
@@ -22,7 +22,7 @@ namespace NzbDrone.Core.Datastore.Converters
ContractResolver = new CamelCasePropertyNamesContractResolver()
};
- SerializerSetting.Converters.Add(new StringEnumConverter { CamelCaseText = true });
+ SerializerSetting.Converters.Add(new StringEnumConverter { NamingStrategy = new CamelCaseNamingStrategy() });
SerializerSetting.Converters.Add(new VersionConverter());
foreach (var converter in converters)
diff --git a/src/NzbDrone.Core/Datastore/Migration/129_remove_kickass_again.cs b/src/NzbDrone.Core/Datastore/Migration/129_remove_kickass_again.cs
deleted file mode 100644
index efabc0ecc..000000000
--- a/src/NzbDrone.Core/Datastore/Migration/129_remove_kickass_again.cs
+++ /dev/null
@@ -1,14 +0,0 @@
-using FluentMigrator;
-using NzbDrone.Core.Datastore.Migration.Framework;
-
-namespace NzbDrone.Core.Datastore.Migration
-{
- [Migration(129)]
- public class remove_kickass_again : NzbDroneMigrationBase
- {
- protected override void MainDbUpgrade()
- {
- Delete.FromTable("Indexers").Row(new { Implementation = "KickassTorrents" });
- }
- }
-}
diff --git a/src/NzbDrone.Core/Datastore/Migration/130_remove_wombles_kickass.cs b/src/NzbDrone.Core/Datastore/Migration/130_remove_wombles_kickass.cs
index fb79cff26..ce00e9a03 100644
--- a/src/NzbDrone.Core/Datastore/Migration/130_remove_wombles_kickass.cs
+++ b/src/NzbDrone.Core/Datastore/Migration/130_remove_wombles_kickass.cs
@@ -3,7 +3,7 @@ using NzbDrone.Core.Datastore.Migration.Framework;
namespace NzbDrone.Core.Datastore.Migration
{
- [Migration(127)]
+ [Migration(130)]
public class remove_wombles_kickass : NzbDroneMigrationBase
{
protected override void MainDbUpgrade()
diff --git a/src/NzbDrone.Core/Download/Clients/Nzbget/Nzbget.cs b/src/NzbDrone.Core/Download/Clients/Nzbget/Nzbget.cs
index a384364fe..ad9a496aa 100644
--- a/src/NzbDrone.Core/Download/Clients/Nzbget/Nzbget.cs
+++ b/src/NzbDrone.Core/Download/Clients/Nzbget/Nzbget.cs
@@ -14,7 +14,6 @@ using NzbDrone.Core.Parser.Model;
using NzbDrone.Core.Validation;
using NzbDrone.Core.RemotePathMappings;
using NzbDrone.Core.Organizer;
-using System.Globalization;
namespace NzbDrone.Core.Download.Clients.Nzbget
{
diff --git a/src/NzbDrone.Core/Indexers/Newznab/NewznabSettings.cs b/src/NzbDrone.Core/Indexers/Newznab/NewznabSettings.cs
index 47e1c7fcf..0544bc7de 100644
--- a/src/NzbDrone.Core/Indexers/Newznab/NewznabSettings.cs
+++ b/src/NzbDrone.Core/Indexers/Newznab/NewznabSettings.cs
@@ -38,14 +38,12 @@ namespace NzbDrone.Core.Indexers.Newznab
public NewznabSettingsValidator()
{
- Custom(newznab =>
+ RuleFor(c => c).Custom((c, context) =>
{
- if (newznab.Categories.Empty() && newznab.AnimeCategories.Empty())
+ if (c.Categories.Empty() && c.AnimeCategories.Empty())
{
- return new ValidationFailure("", "Either 'Categories' or 'Anime Categories' must be provided");
+ context.AddFailure("Either 'Categories' or 'Anime Categories' must be provided");
}
-
- return null;
});
RuleFor(c => c.BaseUrl).ValidRootUrl();
diff --git a/src/NzbDrone.Core/Indexers/Torznab/TorznabSettings.cs b/src/NzbDrone.Core/Indexers/Torznab/TorznabSettings.cs
index 2e8d29bd6..76dc4fff7 100644
--- a/src/NzbDrone.Core/Indexers/Torznab/TorznabSettings.cs
+++ b/src/NzbDrone.Core/Indexers/Torznab/TorznabSettings.cs
@@ -32,14 +32,12 @@ namespace NzbDrone.Core.Indexers.Torznab
public TorznabSettingsValidator()
{
- Custom(newznab =>
+ RuleFor(c => c).Custom((c, context) =>
{
- if (newznab.Categories.Empty() && newznab.AnimeCategories.Empty())
+ if (c.Categories.Empty() && c.AnimeCategories.Empty())
{
- return new ValidationFailure("", "Either 'Categories' or 'Anime Categories' must be provided");
+ context.AddFailure("Either 'Categories' or 'Anime Categories' must be provided");
}
-
- return null;
});
RuleFor(c => c.BaseUrl).ValidRootUrl();
diff --git a/src/NzbDrone.Core/NzbDrone.Core.csproj b/src/NzbDrone.Core/NzbDrone.Core.csproj
deleted file mode 100644
index 0e733ca16..000000000
--- a/src/NzbDrone.Core/NzbDrone.Core.csproj
+++ /dev/null
@@ -1,1422 +0,0 @@
-
-
-
- Debug
- x86
- 8.0.30703
- 2.0
- {FF5EE3B6-913B-47CE-9CEB-11C51B4E1205}
- Library
- Properties
- NzbDrone.Core
- Radarr.Core
- v4.6.1
-
-
- 512
- publish\
- true
- Disk
- false
- Foreground
- 7
- Days
- false
- false
- true
- 0
- 1.0.0.%2a
- false
- false
- true
- ..\
- true
-
-
- x86
- true
- full
- false
- ..\..\_output\
- DEBUG;TRACE
- prompt
- 4
- false
-
-
- x86
- pdbonly
- true
- ..\..\_output\
- TRACE
- prompt
- 4
- false
-
-
-
- ..\packages\xmlrpcnet.2.5.0\lib\net20\CookComputing.XmlRpcV2.dll
-
-
- ..\packages\FluentMigrator.1.6.2\lib\40\FluentMigrator.dll
-
-
- ..\packages\FluentMigrator.Runner.1.6.2\lib\40\FluentMigrator.Runner.dll
-
-
- ..\packages\FluentValidation.6.2.1.0\lib\Net45\FluentValidation.dll
-
-
- False
- ..\Libraries\Growl.Connector.dll
-
-
- False
- ..\Libraries\Growl.CoreLibrary.dll
-
-
- ..\packages\ImageResizer.3.4.3\lib\ImageResizer.dll
-
-
- ..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll
-
-
- ..\packages\NLog.4.6.6\lib\net45\NLog.dll
-
-
- ..\packages\OAuth.1.0.3\lib\net40\OAuth.dll
-
-
- ..\packages\Prowlin.0.9.4456.26422\lib\net40\Prowlin.dll
-
-
- ..\packages\RestSharp.105.2.3\lib\net46\RestSharp.dll
-
-
-
-
-
-
-
-
-
-
-
- ..\packages\System.ValueTuple.4.5.0\lib\portable-net40+sl4+win8+wp8\System.ValueTuple.dll
-
-
-
-
-
-
-
-
-
- ..\Libraries\Sqlite\System.Data.SQLite.dll
-
-
-
-
- Properties\SharedAssemblyInfo.cs
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Code
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Code
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Code
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Code
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Code
-
-
- Code
-
-
-
- Code
-
-
- Code
-
-
-
-
-
-
-
-
- Code
-
-
-
-
-
-
-
-
-
-
-
-
- Code
-
-
-
- Code
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Code
-
-
-
- Code
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Code
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Code
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- False
- Microsoft .NET Framework 4 Client Profile %28x86 and x64%29
- true
-
-
- False
- .NET Framework 3.5 SP1 Client Profile
- false
-
-
- False
- .NET Framework 3.5 SP1
- false
-
-
- False
- Windows Installer 3.1
- true
-
-
-
-
-
- Always
-
-
-
-
-
-
-
-
-
- {F6FC6BE7-0847-4817-A1ED-223DC647C3D7}
- Marr.Data
-
-
- {411a9e0e-fdc6-4e25-828a-0c2cd1cd96f8}
- MonoTorrent
-
-
- {F2BE0FDF-6E47-4827-A420-DD4EF82407F8}
- NzbDrone.Common
-
-
-
-
- Resources\Logo\64.png
-
-
-
-
- MediaInfo.dll
- PreserveNewest
-
-
- libmediainfo.0.dylib
- PreserveNewest
-
-
- libsqlite3.0.dylib
- PreserveNewest
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/NzbDrone.Core/Properties/AnalysisRules.ruleset b/src/NzbDrone.Core/Properties/AnalysisRules.ruleset
deleted file mode 100644
index 9925a186f..000000000
--- a/src/NzbDrone.Core/Properties/AnalysisRules.ruleset
+++ /dev/null
@@ -1,35 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/NzbDrone.Core/Properties/AssemblyInfo.cs b/src/NzbDrone.Core/Properties/AssemblyInfo.cs
index dfe681ea4..1b3561cc7 100644
--- a/src/NzbDrone.Core/Properties/AssemblyInfo.cs
+++ b/src/NzbDrone.Core/Properties/AssemblyInfo.cs
@@ -1,14 +1,3 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
+using System.Runtime.CompilerServices;
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-
-[assembly: AssemblyTitle("Radarr.Core")]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("3C29FEF7-4B07-49ED-822E-1C29DC49BFAB")]
-
-[assembly: InternalsVisibleTo("Radarr.Core.Test")]
+[assembly: InternalsVisibleTo("Radarr.Core.Test")]
\ No newline at end of file
diff --git a/src/NzbDrone.Core/Radarr.Core.csproj b/src/NzbDrone.Core/Radarr.Core.csproj
new file mode 100644
index 000000000..2dec5e96a
--- /dev/null
+++ b/src/NzbDrone.Core/Radarr.Core.csproj
@@ -0,0 +1,47 @@
+
+
+ net462
+ x86
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ..\Libraries\Growl.Connector.dll
+
+
+ ..\Libraries\Growl.CoreLibrary.dll
+
+
+ ..\Libraries\Sqlite\System.Data.SQLite.dll
+
+
+
+
+
+
+ Resources\Logo\64.png
+
+
+ PreserveNewest
+
+
+ PreserveNewest
+
+
+
\ No newline at end of file
diff --git a/src/NzbDrone.Core/packages.config b/src/NzbDrone.Core/packages.config
deleted file mode 100644
index 7e3adcd60..000000000
--- a/src/NzbDrone.Core/packages.config
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/NzbDrone.App.Test/ContainerFixture.cs b/src/NzbDrone.Host.Test/ContainerFixture.cs
similarity index 100%
rename from src/NzbDrone.App.Test/ContainerFixture.cs
rename to src/NzbDrone.Host.Test/ContainerFixture.cs
diff --git a/src/NzbDrone.App.Test/NzbDroneProcessServiceFixture.cs b/src/NzbDrone.Host.Test/NzbDroneProcessServiceFixture.cs
similarity index 99%
rename from src/NzbDrone.App.Test/NzbDroneProcessServiceFixture.cs
rename to src/NzbDrone.Host.Test/NzbDroneProcessServiceFixture.cs
index 2e6484381..5ec9161b7 100644
--- a/src/NzbDrone.App.Test/NzbDroneProcessServiceFixture.cs
+++ b/src/NzbDrone.Host.Test/NzbDroneProcessServiceFixture.cs
@@ -5,7 +5,6 @@ using NzbDrone.Common.Model;
using NzbDrone.Common.Processes;
using Radarr.Host;
using NzbDrone.Test.Common;
-using Radarr.Host;
namespace NzbDrone.App.Test
{
diff --git a/src/NzbDrone.Host.Test/Radarr.Host.Test.csproj b/src/NzbDrone.Host.Test/Radarr.Host.Test.csproj
new file mode 100644
index 000000000..f9812a8a0
--- /dev/null
+++ b/src/NzbDrone.Host.Test/Radarr.Host.Test.csproj
@@ -0,0 +1,13 @@
+
+
+ net462
+ x86
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/NzbDrone.App.Test/RouterTest.cs b/src/NzbDrone.Host.Test/RouterTest.cs
similarity index 94%
rename from src/NzbDrone.App.Test/RouterTest.cs
rename to src/NzbDrone.Host.Test/RouterTest.cs
index f5b4c67ae..c7a07b6fc 100644
--- a/src/NzbDrone.App.Test/RouterTest.cs
+++ b/src/NzbDrone.Host.Test/RouterTest.cs
@@ -23,9 +23,9 @@ namespace NzbDrone.App.Test
public void Route_should_call_install_service_when_application_mode_is_install()
{
var serviceProviderMock = Mocker.GetMock(MockBehavior.Strict);
- serviceProviderMock.Setup(c => c.Install(ServiceProvider.SERVICE_NAME));
serviceProviderMock.Setup(c => c.ServiceExist(ServiceProvider.SERVICE_NAME)).Returns(false);
- serviceProviderMock.Setup(c => c.Start(ServiceProvider.SERVICE_NAME));
+ serviceProviderMock.Setup(c => c.Install(ServiceProvider.SERVICE_NAME));
+ serviceProviderMock.Setup(c => c.SetPermissions(ServiceProvider.SERVICE_NAME));
Mocker.GetMock()
.Setup(c => c.SpawnNewProcess("sc.exe", It.IsAny(), null, true));
@@ -42,13 +42,13 @@ namespace NzbDrone.App.Test
public void Route_should_call_uninstall_service_when_application_mode_is_uninstall()
{
var serviceProviderMock = Mocker.GetMock();
- serviceProviderMock.Setup(c => c.UnInstall(ServiceProvider.SERVICE_NAME));
+ serviceProviderMock.Setup(c => c.Uninstall(ServiceProvider.SERVICE_NAME));
Mocker.GetMock().SetupGet(c => c.IsUserInteractive).Returns(true);
serviceProviderMock.Setup(c => c.ServiceExist(ServiceProvider.SERVICE_NAME)).Returns(true);
Subject.Route(ApplicationModes.UninstallService);
- serviceProviderMock.Verify(c => c.UnInstall(ServiceProvider.SERVICE_NAME), Times.Once());
+ serviceProviderMock.Verify(c => c.Uninstall(ServiceProvider.SERVICE_NAME), Times.Once());
}
[Test]
@@ -107,4 +107,4 @@ namespace NzbDrone.App.Test
}
}
-}
+}
\ No newline at end of file
diff --git a/src/NzbDrone.Host.Test/app.config b/src/NzbDrone.Host.Test/app.config
new file mode 100644
index 000000000..5c8e52f5e
--- /dev/null
+++ b/src/NzbDrone.Host.Test/app.config
@@ -0,0 +1,2 @@
+
+
\ No newline at end of file
diff --git a/src/NzbDrone.Host/NzbDrone.Host.csproj b/src/NzbDrone.Host/NzbDrone.Host.csproj
deleted file mode 100644
index a49f32745..000000000
--- a/src/NzbDrone.Host/NzbDrone.Host.csproj
+++ /dev/null
@@ -1,232 +0,0 @@
-
-
-
- Debug
- x86
- 8.0.30703
- 2.0
- {95C11A9E-56ED-456A-8447-2C89C1139266}
- Library
- Properties
- Radarr.Host
- Radarr.Host
- v4.6.1
- 512
-
-
- false
- publish\
- true
- Disk
- false
- Foreground
- 7
- Days
- false
- false
- true
- 0
- 1.0.0.%2a
- false
- true
- ..\
- true
-
-
- x86
- true
- full
- false
- ..\..\_output\
- DEBUG;TRACE
- prompt
- 4
- true
- BasicCorrectnessRules.ruleset
- false
-
-
- x86
- pdbonly
- true
- ..\..\_output\
- TRACE
- prompt
- 4
- false
-
-
- OnOutputUpdated
-
-
- Radarr.ico
-
-
-
- ..\packages\Microsoft.AspNet.SignalR.Core.2.4.1\lib\net45\Microsoft.AspNet.SignalR.Core.dll
-
-
- ..\packages\Microsoft.AspNet.SignalR.SystemWeb.2.4.1\lib\net45\Microsoft.AspNet.SignalR.SystemWeb.dll
-
-
-
- ..\packages\Microsoft.Owin.3.1.0\lib\net45\Microsoft.Owin.dll
-
-
- ..\packages\Microsoft.Owin.Diagnostics.3.1.0\lib\net45\Microsoft.Owin.Diagnostics.dll
-
-
- ..\packages\Microsoft.Owin.Host.HttpListener.3.1.0\lib\net45\Microsoft.Owin.Host.HttpListener.dll
-
-
- ..\packages\Microsoft.Owin.Host.SystemWeb.3.1.0\lib\net45\Microsoft.Owin.Host.SystemWeb.dll
-
-
- ..\packages\Microsoft.Owin.Hosting.3.1.0\lib\net45\Microsoft.Owin.Hosting.dll
-
-
- ..\packages\Microsoft.Owin.Security.3.1.0\lib\net45\Microsoft.Owin.Security.dll
-
-
- ..\packages\Nancy.1.4.4\lib\net40\Nancy.dll
-
-
- ..\packages\Nancy.Owin.1.4.1\lib\net40\Nancy.Owin.dll
-
-
- ..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll
-
-
- ..\packages\NLog.4.6.6\lib\net45\NLog.dll
-
-
- ..\packages\Owin.1.0\lib\net40\Owin.dll
-
-
-
-
-
-
-
-
-
-
-
- ..\Libraries\Interop.NetFwTypeLib.dll
- False
-
-
-
-
-
-
-
- Properties\SharedAssemblyInfo.cs
-
-
-
-
-
-
-
-
- Component
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- False
- Microsoft .NET Framework 4 %28x86 and x64%29
- true
-
-
- False
- .NET Framework 3.5 SP1 Client Profile
- false
-
-
- False
- .NET Framework 3.5 SP1
- false
-
-
- False
- Windows Installer 3.1
- true
-
-
-
-
- {FD286DF8-2D3A-4394-8AD5-443FADE55FB2}
- NzbDrone.Api
-
-
- {f2be0fdf-6e47-4827-a420-dd4ef82407f8}
- NzbDrone.Common
-
-
- {ff5ee3b6-913b-47ce-9ceb-11c51b4e1205}
- NzbDrone.Core
-
-
- {7C2CC69F-5CA0-4E5C-85CB-983F9F6C3B36}
- NzbDrone.SignalR
-
-
- {38497dc6-e488-4b9e-a973-a1a7961b33c4}
- Radarr.Api.V2
-
-
- {c5953dab-89db-46d9-a401-d620f54b776e}
- Radarr.Http
-
-
-
-
-
-
-
-
-
-
-
-
- xcopy /s /y "$(SolutionDir)\Libraries\Sqlite\*.*" "$(TargetDir)"
-
-
- cp -rv $(SolutionDir)Libraries\Sqlite\*.* $(TargetDir)
-
-
-
-
\ No newline at end of file
diff --git a/src/NzbDrone.Host/Properties/AssemblyInfo.cs b/src/NzbDrone.Host/Properties/AssemblyInfo.cs
deleted file mode 100644
index 88458fff9..000000000
--- a/src/NzbDrone.Host/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-using System.Reflection;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-
-[assembly: AssemblyTitle("Radarr.exe")]
-[assembly: Guid("C2172AF4-F9A6-4D91-BAEE-C2E4EE680613")]
-
diff --git a/src/NzbDrone.Host/Radarr.Host.csproj b/src/NzbDrone.Host/Radarr.Host.csproj
new file mode 100644
index 000000000..bdffbaaee
--- /dev/null
+++ b/src/NzbDrone.Host/Radarr.Host.csproj
@@ -0,0 +1,26 @@
+
+
+ net462
+ x86
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ..\Libraries\Interop.NetFwTypeLib.dll
+ True
+
+
+
+
\ No newline at end of file
diff --git a/src/NzbDrone.Host/app.config b/src/NzbDrone.Host/app.config
deleted file mode 100644
index fe679a318..000000000
--- a/src/NzbDrone.Host/app.config
+++ /dev/null
@@ -1,49 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/NzbDrone.Host/packages.config b/src/NzbDrone.Host/packages.config
deleted file mode 100644
index 1f494407a..000000000
--- a/src/NzbDrone.Host/packages.config
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/NzbDrone.Integration.Test/Client/ClientBase.cs b/src/NzbDrone.Integration.Test/Client/ClientBase.cs
index 85c2a32b3..28c7a1d7a 100644
--- a/src/NzbDrone.Integration.Test/Client/ClientBase.cs
+++ b/src/NzbDrone.Integration.Test/Client/ClientBase.cs
@@ -104,14 +104,14 @@ namespace NzbDrone.Integration.Test.Client
public TResource Post(TResource body, HttpStatusCode statusCode = HttpStatusCode.Created)
{
var request = BuildRequest();
- request.AddBody(body);
+ request.AddJsonBody(body);
return Post(request, statusCode);
}
public TResource Put(TResource body, HttpStatusCode statusCode = HttpStatusCode.Accepted)
{
var request = BuildRequest();
- request.AddBody(body);
+ request.AddJsonBody(body);
return Put(request, statusCode);
}
@@ -142,14 +142,14 @@ namespace NzbDrone.Integration.Test.Client
public object InvalidPost(TResource body, HttpStatusCode statusCode = HttpStatusCode.BadRequest)
{
var request = BuildRequest();
- request.AddBody(body);
+ request.AddJsonBody(body);
return Post