Skip to content

Commit 4c1239e

Browse files
committed
context
1 parent b79cc80 commit 4c1239e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Tests/SolutionArtifacts/ManagedCode.Storage.TestsOnly.sln renamed to ManagedCode.Storage.TestsOnly.sln

File renamed without changes.

Tests/ManagedCode.Storage.Tests/Common/StorageTestApplication.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ public class StorageTestApplication : WebApplicationFactory<HttpHostProgram>, IC
3535
private readonly LocalStackContainer _localStackContainer;
3636
private readonly FakeGcsServerContainer _gcpContainer;
3737

38+
private static readonly string ContentRoot = Path.GetFullPath(Path.Combine(AppContext.BaseDirectory, "..", "..", "..", "Common", "TestApp"));
39+
3840
public StorageTestApplication()
3941
{
4042
_azuriteContainer = new AzuriteBuilder()
@@ -116,9 +118,8 @@ protected override IHost CreateHost(IHostBuilder builder)
116118

117119
protected override void ConfigureWebHost(IWebHostBuilder builder)
118120
{
119-
var projectDir = Path.GetFullPath(Path.Combine(AppContext.BaseDirectory, "..", "..", "..", "Common", "TestApp"));
120121
builder.UseEnvironment("Development");
121-
builder.UseContentRoot(projectDir);
122+
builder.UseContentRoot(ContentRoot);
122123
}
123124

124125
public override async ValueTask DisposeAsync()

0 commit comments

Comments
 (0)