@@ -43,7 +43,7 @@ public async Task TestIssue69()
4343 }
4444 }
4545 } ;
46- await MiniWord . SaveAsByTemplateAsync ( path , templatePath , value ) ;
46+ MiniWord . SaveAsByTemplate ( path , templatePath , value ) ;
4747 // TODO: waiting solution
4848 //var xml = Helpers.GetZipFileContent(path, "word/document.xml");
4949 //Assert.Contains(@"MiniWord", xml);
@@ -60,7 +60,7 @@ public async Task TaskSplitTag()
6060 {
6161 [ "title" ] = "Hello MiniWord" ,
6262 } ;
63- await MiniWord . SaveAsByTemplateAsync ( path , templatePath , value ) ;
63+ MiniWord . SaveAsByTemplate ( path , templatePath , value ) ;
6464 var xml = Helpers . GetZipFileContent ( path , "word/document.xml" ) ;
6565 Assert . Contains ( @"MiniWord" , xml ) ;
6666 }
@@ -81,7 +81,7 @@ public async Task TestIssue37()
8181 [ "Content" ] = "Test" ,
8282 [ "Content2" ] = "Test2" ,
8383 } ;
84- await MiniWord . SaveAsByTemplateAsync ( path , templatePath , value ) ;
84+ MiniWord . SaveAsByTemplate ( path , templatePath , value ) ;
8585 var xml = Helpers . GetZipFileContent ( path , "word/document.xml" ) ;
8686 Assert . Contains ( @"Test" , xml ) ;
8787 Assert . Contains ( @"Test2" , xml ) ;
@@ -103,7 +103,7 @@ public async Task TestIssue37()
103103 Text = "Test2!!"
104104 } ,
105105 } ;
106- await MiniWord . SaveAsByTemplateAsync ( path , templatePath , value ) ;
106+ MiniWord . SaveAsByTemplate ( path , templatePath , value ) ;
107107 var xml = Helpers . GetZipFileContent ( path , "word/document.xml" ) ;
108108 Assert . Contains ( @"Test" , xml ) ;
109109 Assert . Contains ( @"Test2" , xml ) ;
@@ -116,7 +116,7 @@ public async Task TestDemo04()
116116 var outputPath = PathHelper . GetTempFilePath ( ) ;
117117 var templatePath = PathHelper . GetFile ( "TestDemo04.docx" ) ;
118118 var value = new Dictionary < string , object > ( ) { [ "title" ] = "Hello MiniWord" } ;
119- await MiniWord . SaveAsByTemplateAsync ( outputPath , templatePath , value ) ;
119+ MiniWord . SaveAsByTemplate ( outputPath , templatePath , value ) ;
120120 }
121121
122122 [ Fact ]
@@ -125,7 +125,7 @@ public async Task TestDemo04_new()
125125 var outputPath = PathHelper . GetTempFilePath ( ) ;
126126 var templatePath = PathHelper . GetFile ( "TestDemo04.docx" ) ;
127127 var value = new { title = "Hello MiniWord" } ;
128- await MiniWord . SaveAsByTemplateAsync ( outputPath , templatePath , value ) ;
128+ MiniWord . SaveAsByTemplate ( outputPath , templatePath , value ) ;
129129 }
130130
131131
@@ -150,7 +150,7 @@ public async Task TestIssue18()
150150 new Dictionary < string , object > { { "name" , "Keaton" } , { "department" , "IT" } }
151151 }
152152 } ;
153- await MiniWord . SaveAsByTemplateAsync ( path , templatePath , value ) ;
153+ MiniWord . SaveAsByTemplate ( path , templatePath , value ) ;
154154 var xml = Helpers . GetZipFileContent ( path , "word/document.xml" ) ;
155155 Assert . Contains ( @"<w:t>Keaton" , xml ) ;
156156 Assert . Contains ( @"<w:t>Eric" , xml ) ;
@@ -174,7 +174,7 @@ public async Task TestIssue18()
174174 new { name = "Keaton" , department = "IT" } ,
175175 } ,
176176 } ;
177- await MiniWord . SaveAsByTemplateAsync ( path , templatePath , value ) ;
177+ MiniWord . SaveAsByTemplate ( path , templatePath , value ) ;
178178 var xml = Helpers . GetZipFileContent ( path , "word/document.xml" ) ;
179179 Assert . Contains ( @"<w:t>Keaton" , xml ) ;
180180 Assert . Contains ( @"<w:t>Eric" , xml ) ;
@@ -198,7 +198,7 @@ public async Task TestIssue18()
198198 new User ( ) { name = "Keaton" , department = "IT" } ,
199199 } ,
200200 } ;
201- await MiniWord . SaveAsByTemplateAsync ( path , templatePath , value ) ;
201+ MiniWord . SaveAsByTemplate ( path , templatePath , value ) ;
202202 var xml = Helpers . GetZipFileContent ( path , "word/document.xml" ) ;
203203 Assert . Contains ( @"<w:t>Keaton" , xml ) ;
204204 Assert . Contains ( @"<w:t>Eric" , xml ) ;
@@ -219,7 +219,7 @@ public async Task TestIssue17()
219219 [ "Content" ] = "Test" ,
220220 [ "Content2" ] = "Test2" ,
221221 } ;
222- await MiniWord . SaveAsByTemplateAsync ( path , templatePath , value ) ;
222+ MiniWord . SaveAsByTemplate ( path , templatePath , value ) ;
223223 var xml = Helpers . GetZipFileContent ( path , "word/document.xml" ) ;
224224 Assert . Contains ( @"<w:t>Test" , xml ) ;
225225 Assert . Contains ( @"<w:t>Test2" , xml ) ;
@@ -239,7 +239,7 @@ public async Task TestIssue17_new()
239239 Content = "Test" ,
240240 Content2 = "Test2" ,
241241 } ;
242- await MiniWord . SaveAsByTemplateAsync ( path , templatePath , value ) ;
242+ MiniWord . SaveAsByTemplate ( path , templatePath , value ) ;
243243 var xml = Helpers . GetZipFileContent ( path , "word/document.xml" ) ;
244244 Assert . Contains ( @"<w:t>Test" , xml ) ;
245245 Assert . Contains ( @"<w:t>Test2" , xml ) ;
@@ -275,7 +275,7 @@ public async Task TestIssue13()
275275 } ,
276276 }
277277 } ;
278- await MiniWord . SaveAsByTemplateAsync ( path , templatePath , value ) ;
278+ MiniWord . SaveAsByTemplate ( path , templatePath , value ) ;
279279 //System.Diagnostics.Process.Start("explorer.exe", path);
280280 var xml = Helpers . GetZipFileContent ( path , "word/document.xml" ) ;
281281 Assert . Contains ( @"Discussion requirement part2 and development" , xml ) ;
@@ -311,7 +311,7 @@ public async Task TestIssue13_new()
311311 } ,
312312 }
313313 } ;
314- await MiniWord . SaveAsByTemplateAsync ( path , templatePath , value ) ;
314+ MiniWord . SaveAsByTemplate ( path , templatePath , value ) ;
315315 //System.Diagnostics.Process.Start("explorer.exe", path);
316316 var xml = Helpers . GetZipFileContent ( path , "word/document.xml" ) ;
317317 Assert . Contains ( @"Discussion requirement part2 and development" , xml ) ;
@@ -333,7 +333,7 @@ public async Task TestDemo01_Tag_Text()
333333 [ "Approved" ] = true ,
334334 [ "Total_Amount" ] = 123456 ,
335335 } ;
336- await MiniWord . SaveAsByTemplateAsync ( path , templatePath , value ) ;
336+ MiniWord . SaveAsByTemplate ( path , templatePath , value ) ;
337337 }
338338
339339
@@ -352,7 +352,7 @@ public async Task TestDemo01_Tag_Text_new()
352352 Approved = true ,
353353 Total_Amount = 123456 ,
354354 } ;
355- await MiniWord . SaveAsByTemplateAsync ( path , templatePath , value ) ;
355+ MiniWord . SaveAsByTemplate ( path , templatePath , value ) ;
356356 }
357357
358358 /// <summary>
@@ -372,7 +372,7 @@ public async Task TestIssue12()
372372 [ "Points" ] = 123 ,
373373 [ "APP" ] = "Demo APP\n " ,
374374 } ;
375- await MiniWord . SaveAsByTemplateAsync ( path , templatePath , value ) ;
375+ MiniWord . SaveAsByTemplate ( path , templatePath , value ) ;
376376 var xml = Helpers . GetZipFileContent ( path , "word/document.xml" ) ;
377377 Assert . Contains ( @"<w:t>MiniSofteware" , xml ) ;
378378 Assert . Contains ( @"<w:br />" , xml ) ;
@@ -395,7 +395,7 @@ public async Task TestIssue12_dynamic()
395395 value . Points = 123 ;
396396 value . APP = "Demo APP\n " ;
397397
398- await MiniWord . SaveAsByTemplateAsync ( path , templatePath , value ) ;
398+ MiniWord . SaveAsByTemplate ( path , templatePath , value ) ;
399399 var xml = Helpers . GetZipFileContent ( path , "word/document.xml" ) ;
400400 Assert . Contains ( @"<w:t>MiniSofteware" , xml ) ;
401401 Assert . Contains ( @"<w:br />" , xml ) ;
@@ -420,7 +420,7 @@ public async Task TestIssue12_new()
420420 APP = "Demo APP\n " ,
421421 } ;
422422
423- await MiniWord . SaveAsByTemplateAsync ( path , templatePath , value ) ;
423+ MiniWord . SaveAsByTemplate ( path , templatePath , value ) ;
424424 var xml = Helpers . GetZipFileContent ( path , "word/document.xml" ) ;
425425 Assert . Contains ( @"<w:t>MiniSofteware" , xml ) ;
426426 Assert . Contains ( @"<w:br />" , xml ) ;
@@ -469,7 +469,7 @@ Lorem Ipsum has been the industry's standard dummy text
469469" ,
470470 [ "Image" ] = new MiniWordPicture ( ) { Path = PathHelper . GetFile ( "demo01.png" ) , Width = 160 , Height = 90 } ,
471471 } ;
472- await MiniWord . SaveAsByTemplateAsync ( path , templatePath , value ) ;
472+ MiniWord . SaveAsByTemplate ( path , templatePath , value ) ;
473473 //System.Diagnostics.Process.Start("explorer.exe", path);
474474 }
475475
@@ -515,7 +515,7 @@ Lorem Ipsum has been the industry's standard dummy text
515515 ever since the 1500s, when an unknown printer took.
516516 " ;
517517 value . Image = new MiniWordPicture ( ) { Path = PathHelper . GetFile ( "demo01.png" ) , Width = 160 , Height = 90 } ;
518- await MiniWord . SaveAsByTemplateAsync ( path , templatePath , value ) ;
518+ MiniWord . SaveAsByTemplate ( path , templatePath , value ) ;
519519 //System.Diagnostics.Process.Start("explorer.exe", path);
520520 }
521521
@@ -534,7 +534,7 @@ public async Task TestIssue11()
534534 [ "managers" ] = new [ ] { "Jack" , "Alan" } ,
535535 [ "employees" ] = new [ ] { "Mike" , "Henry" } ,
536536 } ;
537- await MiniWord . SaveAsByTemplateAsync ( path , templatePath , value ) ;
537+ MiniWord . SaveAsByTemplate ( path , templatePath , value ) ;
538538 var xml = Helpers . GetZipFileContent ( path , "word/document.xml" ) ;
539539 Assert . Contains ( "Jack" , xml ) ;
540540 }
@@ -546,7 +546,7 @@ public async Task TestIssue11()
546546 [ "managers" ] = new List < string > { "Jack" , "Alan" } ,
547547 [ "employees" ] = new List < string > { "Mike" , "Henry" } ,
548548 } ;
549- await MiniWord . SaveAsByTemplateAsync ( path , templatePath , value ) ;
549+ MiniWord . SaveAsByTemplate ( path , templatePath , value ) ;
550550 var xml = Helpers . GetZipFileContent ( path , "word/document.xml" ) ;
551551 Assert . Contains ( "Jack" , xml ) ;
552552 }
@@ -567,7 +567,7 @@ public async Task TestIssue11_new()
567567 // managers = new[] { "Jack", "Alan" },
568568 // employees = new[] { "Mike", "Henry" },
569569 // };
570- // await MiniWord.SaveAsByTemplateAsync (path, templatePath, value);
570+ // MiniWord.SaveAsByTemplate (path, templatePath, value);
571571 // var xml = Helpers.GetZipFileContent(path, "word/document.xml");
572572 // Assert.Contains("Jack", xml);
573573 //}
@@ -579,7 +579,7 @@ public async Task TestIssue11_new()
579579 managers = new List < string > { "Jack" , "Alan" } ,
580580 employees = new List < string > { "Mike" , "Henry" } ,
581581 } ;
582- await MiniWord . SaveAsByTemplateAsync ( path , templatePath , value ) ;
582+ MiniWord . SaveAsByTemplate ( path , templatePath , value ) ;
583583 var xml = Helpers . GetZipFileContent ( path , "word/document.xml" ) ;
584584 Assert . Contains ( "Jack" , xml ) ;
585585 }
@@ -598,7 +598,7 @@ public async Task TestIssue3()
598598 {
599599 [ "Logo" ] = new MiniWordPicture ( ) { Path = PathHelper . GetFile ( "DemoLogo.png" ) , Width = 180 , Height = 180 }
600600 } ;
601- await MiniWord . SaveAsByTemplateAsync ( path , templatePath , value ) ;
601+ MiniWord . SaveAsByTemplate ( path , templatePath , value ) ;
602602 var xml = Helpers . GetZipFileContent ( path , "word/document.xml" ) ;
603603 Assert . Contains ( "<w:drawing>" , xml ) ;
604604 }
@@ -624,7 +624,7 @@ public async Task TestIssue5()
624624 [ "Points" ] = 123 ,
625625 [ "APP" ] = "Demo APP" ,
626626 } ;
627- await MiniWord . SaveAsByTemplateAsync ( path , templatePath , value ) ;
627+ MiniWord . SaveAsByTemplate ( path , templatePath , value ) ;
628628 //Console.WriteLine(path);
629629 var xml = Helpers . GetZipFileContent ( path , "word/document.xml" ) ;
630630 Assert . DoesNotContain ( "Jack Demo APP Account Data" , xml ) ;
@@ -656,7 +656,7 @@ public async Task MiniWordHyperLink_List()
656656 [ "Points" ] = 123 ,
657657 [ "APP" ] = "Demo APP" ,
658658 } ;
659- await MiniWord . SaveAsByTemplateAsync ( path , templatePath , value ) ;
659+ MiniWord . SaveAsByTemplate ( path , templatePath , value ) ;
660660 //Console.WriteLine(path);
661661 var docXml = Helpers . GetZipFileContent ( path , "word/document.xml" ) ;
662662 Assert . DoesNotContain ( "Jack Demo APP Account Data" , docXml ) ;
@@ -692,7 +692,7 @@ public async Task MiniWordHyperLink_Array()
692692 [ "Points" ] = 123 ,
693693 [ "APP" ] = "Demo APP" ,
694694 } ;
695- await MiniWord . SaveAsByTemplateAsync ( path , templatePath , value ) ;
695+ MiniWord . SaveAsByTemplate ( path , templatePath , value ) ;
696696
697697 var docXml = Helpers . GetZipFileContent ( path , "word/document.xml" ) ;
698698 Assert . DoesNotContain ( "Jack Demo APP Account Data" , docXml ) ;
@@ -728,7 +728,7 @@ public async Task MiniWordHyperLink_AnonymousArray()
728728 [ "Points" ] = 123 ,
729729 [ "APP" ] = "Demo APP" ,
730730 } ;
731- await MiniWord . SaveAsByTemplateAsync ( path , templatePath , value ) ;
731+ MiniWord . SaveAsByTemplate ( path , templatePath , value ) ;
732732
733733 var docXml = Helpers . GetZipFileContent ( path , "word/document.xml" ) ;
734734 Assert . DoesNotContain ( "Jack Demo APP Account Data" , docXml ) ;
@@ -762,7 +762,7 @@ public async Task TestIssue5_new()
762762 Points = 123 ,
763763 APP = "Demo APP" ,
764764 } ;
765- await MiniWord . SaveAsByTemplateAsync ( path , templatePath , value ) ;
765+ MiniWord . SaveAsByTemplate ( path , templatePath , value ) ;
766766 //Console.WriteLine(path);
767767 var xml = Helpers . GetZipFileContent ( path , "word/document.xml" ) ;
768768 Assert . DoesNotContain ( "Jack Demo APP Account Data" , xml ) ;
@@ -788,7 +788,7 @@ public async Task TestIssue4()
788788 [ "Points" ] = 123 ,
789789 [ "APP" ] = "Demo APP" ,
790790 } ;
791- await MiniWord . SaveAsByTemplateAsync ( path , templatePath , value ) ;
791+ MiniWord . SaveAsByTemplate ( path , templatePath , value ) ;
792792 }
793793
794794 /// <summary>
@@ -808,7 +808,7 @@ public async Task TestIssue4_new()
808808 Points = 123 ,
809809 APP = "Demo APP" ,
810810 } ;
811- await MiniWord . SaveAsByTemplateAsync ( path , templatePath , value ) ;
811+ MiniWord . SaveAsByTemplate ( path , templatePath , value ) ;
812812 }
813813 [ Fact ]
814814 public async Task TestColor ( )
@@ -830,7 +830,7 @@ public async Task TestColor()
830830 Points = 123 ,
831831 APP = "Demo APP" ,
832832 } ;
833- await MiniWord . SaveAsByTemplateAsync ( path , templatePath , value ) ;
833+ MiniWord . SaveAsByTemplate ( path , templatePath , value ) ;
834834 }
835835
836836 [ Fact ]
@@ -855,7 +855,7 @@ public async Task TestMultipleColorWordByWord()
855855 Points = 123 ,
856856 APP = "Demo APP" ,
857857 } ;
858- await MiniWord . SaveAsByTemplateAsync ( path , templatePath , value ) ;
858+ MiniWord . SaveAsByTemplate ( path , templatePath , value ) ;
859859 }
860860
861861
0 commit comments