2023-04-12 14:06:04 +00:00
|
|
|
|
using Logging;
|
2023-04-12 11:53:55 +00:00
|
|
|
|
|
|
|
|
|
namespace DistTestCore
|
|
|
|
|
{
|
|
|
|
|
public class TestLifecycle
|
|
|
|
|
{
|
2023-04-12 14:06:04 +00:00
|
|
|
|
public TestLifecycle(Configuration configuration)
|
2023-04-12 11:53:55 +00:00
|
|
|
|
{
|
2023-04-12 14:06:04 +00:00
|
|
|
|
Log = new TestLog(configuration.GetLogConfig());
|
|
|
|
|
FileManager = new FileManager(Log, configuration);
|
2023-04-13 07:33:10 +00:00
|
|
|
|
CodexStarter = new CodexStarter(this, configuration);
|
2023-04-12 14:06:04 +00:00
|
|
|
|
}
|
2023-04-12 11:53:55 +00:00
|
|
|
|
|
2023-04-12 14:06:04 +00:00
|
|
|
|
public TestLog Log { get; }
|
|
|
|
|
public FileManager FileManager { get; }
|
|
|
|
|
public CodexStarter CodexStarter { get; }
|
2023-04-12 11:53:55 +00:00
|
|
|
|
|
2023-04-12 14:06:04 +00:00
|
|
|
|
public void DeleteAllResources()
|
|
|
|
|
{
|
|
|
|
|
CodexStarter.DeleteAllResources();
|
|
|
|
|
FileManager.DeleteAllTestFiles();
|
2023-04-12 11:53:55 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|