SSPC-Tester/SSPCTester.Logic/Models/TestSelection.cs
2026-07-03 14:16:15 +08:00

39 lines
1.3 KiB
C#

namespace SSPCTester.Logic.Models;
/// <summary>用户在项目信息页选择的要执行的测试模块。</summary>
public sealed class TestSelection
{
public bool Basic { get; set; } = true;
public bool Curve { get; set; } = true;
public bool Power { get; set; } = true;
public bool Protect { get; set; } = true;
public IEnumerable<string> EnumerateEnabled()
{
if (Basic) yield return "基础测试";
if (Curve) yield return "开启与关断曲线";
if (Power) yield return "功率损耗";
if (Protect) yield return "保护功能";
}
}
/// <summary>报告页勾选的章节。</summary>
public sealed class ReportSelection
{
public bool Cover { get; set; } = true;
public bool Basic { get; set; } = true;
public bool Curve { get; set; } = true;
public bool Power { get; set; } = true;
public bool Protect { get; set; } = true;
public string FileName { get; set; } = "{ProjectName}_{yyyyMMdd_HHmmss}.pdf";
}
/// <summary>四个测试页“测试说明”手动记录内容。</summary>
public sealed class TestFunctionNotes
{
public string Basic { get; set; } = "";
public string Curve { get; set; } = "";
public string Power { get; set; } = "";
public string Protect { get; set; } = "";
}