using Workflow.Application.BuildFlow.Common.Services; namespace BuildFlow.Workflow.Tests.Performance; /// 从给定枚举返回导入行的 Excel 服务测试替身。 public sealed class EnumerableFormSchemaExcelService(IEnumerable rows) : IFormSchemaExcelService { public byte[] BuildTemplate(string schemaJson, string formName) => []; public byte[] BuildExport( string schemaJson, string formName, IEnumerable dataJsonRows) => []; public IEnumerable Parse( string schemaJson, Stream xlsxStream, int maxRows, int maxCellTextLength) => rows; }