From c21ff235b6192930d5589e11dca6bab525e5edc8 Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Thu, 18 Jul 2013 20:50:12 -0700 Subject: [PATCH] fixed compile issues --- NzbDrone.Api/ClientSchema/SchemaDeserializer.cs | 1 + NzbDrone.Core.Test/Configuration/ConfigServiceFixture.cs | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/NzbDrone.Api/ClientSchema/SchemaDeserializer.cs b/NzbDrone.Api/ClientSchema/SchemaDeserializer.cs index eec9c3123..9985ffb49 100644 --- a/NzbDrone.Api/ClientSchema/SchemaDeserializer.cs +++ b/NzbDrone.Api/ClientSchema/SchemaDeserializer.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using NzbDrone.Common; using NzbDrone.Common.Reflection; using NzbDrone.Core.Annotations; diff --git a/NzbDrone.Core.Test/Configuration/ConfigServiceFixture.cs b/NzbDrone.Core.Test/Configuration/ConfigServiceFixture.cs index b133ad6c6..fb695e9c5 100644 --- a/NzbDrone.Core.Test/Configuration/ConfigServiceFixture.cs +++ b/NzbDrone.Core.Test/Configuration/ConfigServiceFixture.cs @@ -13,7 +13,7 @@ namespace NzbDrone.Core.Test.Configuration [SetUp] public void SetUp() { - Mocker.Resolve(); + Mocker.SetConstant(Mocker.Resolve()); } [Test] @@ -65,7 +65,7 @@ namespace NzbDrone.Core.Test.Configuration Subject.SetValue(key, newValue); var result = Subject.GetValue(key, ""); - + result.Should().Be(newValue); AllStoredModels.Should().HaveCount(1); } @@ -141,7 +141,7 @@ namespace NzbDrone.Core.Test.Configuration var allProperties = typeof(ConfigService).GetProperties().Where(p => p.GetSetMethod() != null).ToList(); - + foreach (var propertyInfo in allProperties) { object value = null;