Beispiel #1
0
        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);
        }
Beispiel #2
0
 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));
     }
 }