diff options
author | crupest <crupest@outlook.com> | 2021-04-24 15:42:17 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-04-24 15:42:17 +0800 |
commit | 93527cceffcd2c7848294093ab9ba3a0e0f569bb (patch) | |
tree | fd4a1c582db52755fed6dd34d078ba699a0ff037 /BackEnd/Timeline.Tests/Helpers | |
parent | cac76dc4783f617015232a68bcbc56579e0c77e7 (diff) | |
download | timeline-93527cceffcd2c7848294093ab9ba3a0e0f569bb.tar.gz timeline-93527cceffcd2c7848294093ab9ba3a0e0f569bb.tar.bz2 timeline-93527cceffcd2c7848294093ab9ba3a0e0f569bb.zip |
test: Fix integrated tests.
Diffstat (limited to 'BackEnd/Timeline.Tests/Helpers')
-rw-r--r-- | BackEnd/Timeline.Tests/Helpers/TestApplication.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/BackEnd/Timeline.Tests/Helpers/TestApplication.cs b/BackEnd/Timeline.Tests/Helpers/TestApplication.cs index fcb0882e..037aa05e 100644 --- a/BackEnd/Timeline.Tests/Helpers/TestApplication.cs +++ b/BackEnd/Timeline.Tests/Helpers/TestApplication.cs @@ -17,12 +17,12 @@ namespace Timeline.Tests.Helpers {
public IHost Host { get; private set; } = default!;
- public string WorkDir { get; private set; } = default!;
+ public string WorkDirectory { get; private set; } = default!;
public async Task InitializeAsync()
{
- WorkDir = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
- Directory.CreateDirectory(WorkDir);
+ WorkDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
+ Directory.CreateDirectory(WorkDirectory);
Host = await Microsoft.Extensions.Hosting.Host.CreateDefaultBuilder()
.ConfigureAppConfiguration((context, config) =>
@@ -30,7 +30,7 @@ namespace Timeline.Tests.Helpers config.AddInMemoryCollection(new Dictionary<string, string>
{
[ApplicationConfiguration.FrontEndKey] = "Mock",
- ["WorkDir"] = WorkDir
+ [ApplicationConfiguration.WorkDirectoryKey] = WorkDirectory
});
})
.ConfigureWebHost(webBuilder =>
@@ -47,7 +47,7 @@ namespace Timeline.Tests.Helpers await Host.StopAsync();
Host.Dispose();
- Directory.Delete(WorkDir, true);
+ Directory.Delete(WorkDirectory, true);
}
}
}
|