mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
broke up EnvironmentProvider into different services
This commit is contained in:
parent
4d874829e8
commit
6b0a24e28e
54 changed files with 549 additions and 560 deletions
|
@ -3,6 +3,7 @@ using System.IO;
|
|||
using FluentAssertions;
|
||||
using NUnit.Framework;
|
||||
using NzbDrone.Common;
|
||||
using NzbDrone.Common.EnvironmentInfo;
|
||||
using NzbDrone.Test.Common;
|
||||
using NzbDrone.Update.UpdateEngine;
|
||||
|
||||
|
@ -14,7 +15,7 @@ namespace NzbDrone.Update.Test
|
|||
[SetUp]
|
||||
public void Setup()
|
||||
{
|
||||
Mocker.GetMock<IEnvironmentProvider>()
|
||||
Mocker.GetMock<IAppDirectoryInfo>()
|
||||
.Setup(c => c.SystemTemp).Returns(@"C:\Temp\");
|
||||
}
|
||||
|
||||
|
|
|
@ -19,16 +19,16 @@ namespace NzbDrone.Update.Test
|
|||
private const string BACKUP_FOLDER = @"C:\Temp\nzbdrone_update\nzbdrone_backup\";
|
||||
private const string TARGET_FOLDER = @"C:\NzbDrone\";
|
||||
|
||||
Mock<IEnvironmentProvider> _environmentProvider;
|
||||
Mock<IIAppDirectoryInfo> _IAppDirectoryInfo;
|
||||
|
||||
|
||||
[SetUp]
|
||||
public void Setup()
|
||||
{
|
||||
|
||||
_environmentProvider = Mocker.GetMock<IEnvironmentProvider>();
|
||||
_IAppDirectoryInfo = Mocker.GetMock<IIAppDirectoryInfo>();
|
||||
|
||||
_environmentProvider.SetupGet(c => c.SystemTemp).Returns(@"C:\Temp\");
|
||||
_IAppDirectoryInfo.SetupGet(c => c.SystemTemp).Returns(@"C:\Temp\");
|
||||
|
||||
Mocker.GetMock<IDiskProvider>()
|
||||
.Setup(c => c.FolderExists(UPDATE_FOLDER))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue