You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
683 B
23 lines
683 B
|
4 months ago
|
using System.ComponentModel.DataAnnotations;
|
||
|
|
|
||
|
|
namespace X1.Application.Features.ScenarioTestCases.Commands.CreateScenarioTestCase;
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// 创建场景测试用例请求模型
|
||
|
|
/// </summary>
|
||
|
|
public class CreateScenarioTestCaseRequest
|
||
|
|
{
|
||
|
|
/// <summary>
|
||
|
|
/// 场景ID
|
||
|
|
/// </summary>
|
||
|
|
[Required(ErrorMessage = "场景ID不能为空")]
|
||
|
|
public string ScenarioId { get; set; } = null!;
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// 测试用例列表
|
||
|
|
/// </summary>
|
||
|
|
[Required(ErrorMessage = "测试用例列表不能为空")]
|
||
|
|
[MinLength(1, ErrorMessage = "至少需要包含一个测试用例")]
|
||
|
|
public List<ScenarioTestCaseItem> TestCases { get; set; } = new();
|
||
|
|
}
|