fixed compile issues

This commit is contained in:
kay.one 2013-07-18 20:50:12 -07:00
parent 9252c5269a
commit c21ff235b6
2 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using NzbDrone.Common;
using NzbDrone.Common.Reflection;
using NzbDrone.Core.Annotations;

View File

@ -13,7 +13,7 @@ namespace NzbDrone.Core.Test.Configuration
[SetUp]
public void SetUp()
{
Mocker.Resolve<IConfigRepository, ConfigRepository>();
Mocker.SetConstant<IConfigRepository>(Mocker.Resolve<ConfigRepository>());
}
[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;