public void TourPDFTest() { string filename = "TestTourPDF"; PDFMaker.MakeTourPDF(((List <Tour>)MakeTestTourList())[0], filename); Assert.IsTrue(File.Exists(ConfigurationManager.AppSettings["FileFolder"] + filename + ".pdf")); //File.Delete(ConfigurationManager.AppSettings["FileFolder"] + path); }
//EXPORT PDF public void PrintTourDataToPDF(Tour tour) { try { log.Info(String.Format("Print Tour To PDF: {0}", tour.ID)); PDFMaker.MakeTourPDF(tour); } catch (Exception e) { Debug.WriteLine(e.Message); log.Info(String.Format(e.Message)); } }