Skip to content

Commit e0f781b

Browse files
committed
test: 更新单元测试
1 parent 9597ad4 commit e0f781b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/UnitTest/Components/ExportPdfButtonTest.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,21 +157,21 @@ public void ExportPdfButtonSettings_Ok()
157157

158158
class MockHtml2PdfService : IHtml2Pdf
159159
{
160-
public Task<byte[]> PdfDataAsync(string url)
160+
public Task<byte[]> PdfDataAsync(string url, PdfOptions? options = null)
161161
{
162162
throw new NotImplementedException();
163163
}
164164

165-
public Task<byte[]> PdfDataFromHtmlAsync(string html, IEnumerable<string>? links = null, IEnumerable<string>? scripts = null)
165+
public Task<byte[]> PdfDataFromHtmlAsync(string html, IEnumerable<string>? links = null, IEnumerable<string>? scripts = null, PdfOptions? options = null)
166166
{
167167
throw new NotImplementedException();
168168
}
169169

170-
public Task<Stream> PdfStreamAsync(string url)
170+
public Task<Stream> PdfStreamAsync(string url, PdfOptions? options = null)
171171
{
172172
throw new NotImplementedException();
173173
}
174174

175-
public Task<Stream> PdfStreamFromHtmlAsync(string html, IEnumerable<string>? links = null, IEnumerable<string>? scripts = null) => Task.FromResult<Stream>(new MemoryStream(Encoding.UTF8.GetBytes("Hello World")));
175+
public Task<Stream> PdfStreamFromHtmlAsync(string html, IEnumerable<string>? links = null, IEnumerable<string>? scripts = null, PdfOptions? options = null) => Task.FromResult<Stream>(new MemoryStream(Encoding.UTF8.GetBytes("Hello World")));
176176
}
177177
}

0 commit comments

Comments
 (0)