24 lines
757 B
C#
24 lines
757 B
C#
using Workflow.Application.BuildFlow.Common.Services;
|
|
|
|
namespace BuildFlow.Workflow.Tests.Performance;
|
|
|
|
/// <summary>从给定枚举返回导入行的 Excel 服务测试替身。</summary>
|
|
public sealed class EnumerableFormSchemaExcelService(IEnumerable<ExcelParsedRow> rows)
|
|
: IFormSchemaExcelService
|
|
{
|
|
public byte[] BuildTemplate(string schemaJson, string formName) => [];
|
|
|
|
public Task WriteExportAsync(
|
|
string schemaJson,
|
|
string formName,
|
|
IAsyncEnumerable<string> dataJsonRows,
|
|
Stream output,
|
|
CancellationToken ct) => Task.CompletedTask;
|
|
|
|
public IEnumerable<ExcelParsedRow> Parse(
|
|
string schemaJson,
|
|
Stream xlsxStream,
|
|
int maxRows,
|
|
int maxCellTextLength) => rows;
|
|
}
|