mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-14 11:23:42 +02:00
Application data is now stored in %APPDATA%\NzbDrone
This commit is contained in:
parent
8d577ee2ef
commit
4a705e9a92
@ -9,8 +9,7 @@ public interface IEnvironmentProvider
|
||||
{
|
||||
bool IsUserInteractive { get; }
|
||||
string WorkingDirectory { get; }
|
||||
string StartUpPath { get; }
|
||||
String SystemTemp { get; }
|
||||
string SystemTemp { get; }
|
||||
Version Version { get; }
|
||||
DateTime BuildDateTime { get; }
|
||||
Version GetOsVersion();
|
||||
@ -35,8 +34,6 @@ public static bool IsProduction
|
||||
if (lowerProcessName.Contains("jetbrain")) return false;
|
||||
if (lowerProcessName.Contains("resharper")) return false;
|
||||
|
||||
if (Instance.StartUpPath.ToLower().Contains("_rawpackage")) return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@ -79,7 +76,7 @@ public virtual bool IsUserInteractive
|
||||
|
||||
public virtual string WorkingDirectory
|
||||
{
|
||||
get { return Directory.GetCurrentDirectory(); }
|
||||
get { return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "NzbDrone"); }
|
||||
}
|
||||
|
||||
public virtual string StartUpPath
|
||||
|
@ -1,7 +1,5 @@
|
||||
|
||||
using System;
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
using FluentAssertions;
|
||||
using NUnit.Framework;
|
||||
using NzbDrone.Common;
|
||||
@ -18,9 +16,6 @@ public class UpdateProviderVerifyFixture : TestBase
|
||||
[SetUp]
|
||||
public void Setup()
|
||||
{
|
||||
Mocker.GetMock<IEnvironmentProvider>()
|
||||
.Setup(c => c.StartUpPath).Returns(@"C:\Temp\NzbDrone_update\");
|
||||
|
||||
Mocker.GetMock<IEnvironmentProvider>()
|
||||
.Setup(c => c.SystemTemp).Returns(@"C:\Temp\");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user