cs-codex-dist-tests/Tests/DistTestCore/Logs/FixtureLog.cs

31 lines
767 B
C#
Raw Permalink Normal View History

2023-09-20 08:51:47 +00:00
using Logging;
namespace DistTestCore.Logs
2023-04-14 12:53:39 +00:00
{
2023-09-12 09:25:04 +00:00
public class FixtureLog : BaseTestLog
2023-04-14 12:53:39 +00:00
{
private readonly string fullName;
private readonly string deployId;
2023-04-14 12:53:39 +00:00
public FixtureLog(LogConfig config, DateTime start, string deployId, string name = "") : base(deployId)
2023-04-14 12:53:39 +00:00
{
this.deployId = deployId;
2023-07-18 07:02:41 +00:00
fullName = NameUtils.GetFixtureFullName(config, start, name);
2023-04-14 12:53:39 +00:00
}
public TestLog CreateTestLog(string name = "")
2023-04-14 12:53:39 +00:00
{
return new TestLog(fullName, deployId, name);
2023-04-14 12:53:39 +00:00
}
public void DeleteFolder()
{
Directory.Delete(fullName, true);
}
2023-06-28 13:11:20 +00:00
protected override string GetFullName()
2023-04-14 12:53:39 +00:00
{
2023-06-28 13:11:20 +00:00
return fullName;
2023-04-14 12:53:39 +00:00
}
}
}