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 Task WriteExportAsync( string schemaJson, string formName, IAsyncEnumerable dataJsonRows, Stream output, CancellationToken ct) => Task.CompletedTask; public IEnumerable Parse( string schemaJson, Stream xlsxStream, int maxRows, int maxCellTextLength) => rows; }