예제 #1
0
 public static void ExportToHTMLFile(string path, Events eventsList)
 {
     HTMLFile exportHtml = new HTMLFile(eventsList);
     exportHtml.ExportToHTMLFile(path);
 }
예제 #2
0
        public void ShouldExportToHTMLFile()
        {
            List<Event> eventsRepo = new List<Event>
            {new Event("2015-01-01","event","description"), new Event("2015-01-02","event2"),new Event("2015-03-01","event3","description3")};

            HTMLFile newObj = new HTMLFile(eventsRepo);
            newObj.ExportToHTMLFile(@"HTMLFile.html");
            Assert.IsTrue(File.Exists(@"HTMLFile.html"));
        }
예제 #3
0
        public static void ExportToHTMLFile(string path, Events eventsList)
        {
            HTMLFile exportHtml = new HTMLFile(eventsList);

            exportHtml.ExportToHTMLFile(path);
        }