public static void ExportToHTMLFile(string path, Events eventsList) { HTMLFile exportHtml = new HTMLFile(eventsList); exportHtml.ExportToHTMLFile(path); }
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")); }