public void TourSummaryPDFTest() { string filename = "TestTourSummary"; PDFMaker.MakeTourSummaryPDF((List <Tour>)MakeTestTourList(), filename); Assert.IsTrue(File.Exists(ConfigurationManager.AppSettings["FileFolder"] + filename + ".pdf")); //File.Delete(ConfigurationManager.AppSettings["FileFolder"] + path); }
public void PrintSummary(IEnumerable <Tour> tourlist) { try { log.Info(String.Format("Print Summary To PDF")); PDFMaker.MakeTourSummaryPDF(tourlist); } catch (Exception e) { Debug.WriteLine(e.Message); log.Info(String.Format(e.Message)); } }