[#79] Entities: Remove EF proxies
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Elwig.Documents;
|
||||
using Elwig.Helpers;
|
||||
using NReco.PdfRenderer;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
@@ -8,7 +9,9 @@ namespace Tests.UnitTests.DocumentTests {
|
||||
private static readonly string FileName = Path.Combine(Path.GetTempPath(), "test_document.pdf");
|
||||
|
||||
public static async Task<string> GeneratePdfText(Document doc, bool preserveLayout = false) {
|
||||
await doc.Generate();
|
||||
using (var ctx = new AppDbContext()) {
|
||||
await doc.Generate(ctx);
|
||||
}
|
||||
try {
|
||||
doc.SaveTo(FileName);
|
||||
var conv = new PdfToTextConverter { CustomArgs = preserveLayout ? "-layout " : "-raw " };
|
||||
|
||||
Reference in New Issue
Block a user