Renamed all Core.Controllers to Core.Providers to avoid confusion between Core Controllers and MVC controllers

This commit is contained in:
Keivan
2010-09-27 21:25:41 -07:00
parent 9515c8788a
commit 01c1943d0e
24 changed files with 125 additions and 152 deletions
+5 -5
View File
@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using Moq;
using NzbDrone.Core.Controllers;
using NzbDrone.Core.Providers;
namespace NzbDrone.Core.Test
{
@@ -18,21 +18,21 @@ namespace NzbDrone.Core.Test
}
public static IConfigController StandardConfig
public static IConfigProvider StandardConfig
{
get
{
var mock = new Mock<IConfigController>();
var mock = new Mock<IConfigProvider>();
mock.SetupGet(c => c.SeriesRoot).Returns("C:\\");
return mock.Object;
}
}
public static IDiskController StandardDisk
public static IDiskProvider StandardDisk
{
get
{
var mock = new Mock<IDiskController>();
var mock = new Mock<IDiskProvider>();
mock.Setup(c => c.GetDirectories(It.IsAny<String>())).Returns(StandardSeries);
mock.Setup(c => c.Exists(It.Is<String>(d => StandardSeries.Contains(d)))).Returns(true);
return mock.Object;