From ae2b055fb561c0e3065ea028e3491834bc2abff5 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Sun, 6 Oct 2019 23:41:27 +0900 Subject: [PATCH] Fix build --- BTCPayServer.Tests/UnitTest1.cs | 2 +- BTCPayServer.Tests/UtilitiesTests.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BTCPayServer.Tests/UnitTest1.cs b/BTCPayServer.Tests/UnitTest1.cs index c8774f324..f79c23a5d 100644 --- a/BTCPayServer.Tests/UnitTest1.cs +++ b/BTCPayServer.Tests/UnitTest1.cs @@ -76,7 +76,7 @@ namespace BTCPayServer.Tests [Trait("Fast", "Fast")] public async Task CheckNoDeadLink() { - var views = Path.Combine(LanguageService.TryGetSolutionDirectoryInfo().FullName, "BTCPayServer", "Views"); + var views = Path.Combine(TestUtils.TryGetSolutionDirectoryInfo().FullName, "BTCPayServer", "Views"); var viewFiles = Directory.EnumerateFiles(views, "*.cshtml", SearchOption.AllDirectories).ToArray(); Assert.NotEmpty(viewFiles); Regex regex = new Regex("href=\"(http.*?)[\"#]"); diff --git a/BTCPayServer.Tests/UtilitiesTests.cs b/BTCPayServer.Tests/UtilitiesTests.cs index 5862a6e59..aaa9d79fd 100644 --- a/BTCPayServer.Tests/UtilitiesTests.cs +++ b/BTCPayServer.Tests/UtilitiesTests.cs @@ -31,7 +31,7 @@ namespace BTCPayServer.Tests var json = await client.GetTransifexAsync("https://api.transifex.com/organizations/btcpayserver/projects/btcpayserver/resources/enjson/"); var langs = new[] { "en" }.Concat(((JObject)json["stats"]).Properties().Select(n => n.Name)).ToArray(); - var langsDir = Path.Combine(Services.LanguageService.TryGetSolutionDirectoryInfo().FullName, "BTCPayServer", "wwwroot", "locales"); + var langsDir = Path.Combine(TestUtils.TryGetSolutionDirectoryInfo().FullName, "BTCPayServer", "wwwroot", "locales"); JObject sourceLang = null; Task.WaitAll(langs.Select(async l =>