Move TryGetSolutionDirectoryInfo in test utils

This commit is contained in:
nicolas.dorier
2019-10-06 23:38:57 +09:00
parent 102b38b5a8
commit a919d3ddec
3 changed files with 13 additions and 17 deletions

View File

@@ -143,6 +143,7 @@ namespace BTCPayServer.Tests
_Host = new WebHostBuilder()
.UseConfiguration(conf)
.UseContentRoot(FindBTCPayServerDirectory())
.UseWebRoot(Path.Combine(FindBTCPayServerDirectory(), "wwwroot"))
.ConfigureServices(s =>
{
s.AddLogging(l =>
@@ -267,7 +268,7 @@ namespace BTCPayServer.Tests
private string FindBTCPayServerDirectory()
{
var solutionDirectory = LanguageService.TryGetSolutionDirectoryInfo(Directory.GetCurrentDirectory());
var solutionDirectory = TestUtils.TryGetSolutionDirectoryInfo(Directory.GetCurrentDirectory());
return Path.Combine(solutionDirectory.FullName, "BTCPayServer");
}