From 4c83d8d6ed1e7b65dbe2200a0c4173963932ee8a Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Fri, 24 Sep 2010 11:10:14 -0700 Subject: [PATCH 1/3] removed old nlog refrence --- NzbDrone.Web/NzbDrone.Web.csproj | 4 ---- 1 file changed, 4 deletions(-) diff --git a/NzbDrone.Web/NzbDrone.Web.csproj b/NzbDrone.Web/NzbDrone.Web.csproj index 3f14da25a..9294d0ff9 100644 --- a/NzbDrone.Web/NzbDrone.Web.csproj +++ b/NzbDrone.Web/NzbDrone.Web.csproj @@ -34,10 +34,6 @@ 4 - - False - ..\SABSync\References\log4net.dll - False ..\NzbDrone.Core\Libraries\Ninject.dll From 22ec10483ab772abac3025da5913c25ec2496cf6 Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Fri, 24 Sep 2010 11:14:15 -0700 Subject: [PATCH 2/3] cleaned DbConfigControllerTest --- NzbDrone.Core.Test/DbConfigControllerTest.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/NzbDrone.Core.Test/DbConfigControllerTest.cs b/NzbDrone.Core.Test/DbConfigControllerTest.cs index e824125f9..88ac644af 100644 --- a/NzbDrone.Core.Test/DbConfigControllerTest.cs +++ b/NzbDrone.Core.Test/DbConfigControllerTest.cs @@ -13,17 +13,18 @@ using SubSonic.Repository; namespace NzbDrone.Core.Test { [TestFixture] + // ReSharper disable InconsistentNaming public class DbConfigControllerTest { [Test] public void Overwrite_existing_value() { - String key = "MY_KEY"; - String value = "MY_VALUE"; + const string key = "MY_KEY"; + const string value = "MY_VALUE"; - //setup + //Arrange var repo = new Mock(); - var config = new Config() { Key = key, Value = value }; + var config = new Config { Key = key, Value = value }; repo.Setup(r => r.Single(key)).Returns(config); var target = new DbConfigController(new Mock().Object, repo.Object); @@ -38,12 +39,11 @@ namespace NzbDrone.Core.Test [Test] public void Add_new_value() { - String key = "MY_KEY"; - String value = "MY_VALUE"; + const string key = "MY_KEY"; + const string value = "MY_VALUE"; - //setup + //Arrange var repo = new Mock(); - var config = new Config() { Key = key, Value = value }; repo.Setup(r => r.Single(It.IsAny())).Returns(null).Verifiable(); var target = new DbConfigController(new Mock().Object, repo.Object); From 96c75b15f081e6f148b4b46ad2dc18ae35ecca84 Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Sun, 26 Sep 2010 14:28:12 -0700 Subject: [PATCH 3/3] removed log4net from global.asax to fix compile issue --- NzbDrone.Web/Global.asax.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/NzbDrone.Web/Global.asax.cs b/NzbDrone.Web/Global.asax.cs index 1ad8cebef..007a1bc28 100644 --- a/NzbDrone.Web/Global.asax.cs +++ b/NzbDrone.Web/Global.asax.cs @@ -1,6 +1,5 @@ using System.Web.Mvc; using System.Web.Routing; -using log4net; using Ninject; using Ninject.Web.Mvc; using NzbDrone.Core;