public static void TestXML() { Bll.Book book = new Bll.Book(); BookXml bookXml = new BookXml(book); bookXml.ConnectionString = @"Data/Book2"; bookXml.Book = book; bookXml.ReadAll(); Console.WriteLine(bookXml.Message); Pl.BookConsole view = new Pl.BookConsole(book); view.List(); }
public static void TestJSON() { Bll.Book book = new Bll.Book(); BookJson bookJson = new BookJson(book); bookJson.ConnectionString = @"Data/Book2"; bookJson.Book = book; bookJson.ReadAll(); Console.WriteLine(bookJson.Message); Pl.BookConsole view = new Pl.BookConsole(book); view.List(); }
public static void TestCSV() { Bll.Book book = new Bll.Book(); BookCsv bookCsv = new BookCsv(book); bookCsv.ConnectionString = @"Data/Book2"; bookCsv.Book = book; bookCsv.ReadAll(); Console.WriteLine(bookCsv.Message); Pl.BookConsole view = new Pl.BookConsole(book); view.List(); }
public void TryOut() { Console.WriteLine("".PadLeft(60, '*')); Console.WriteLine("\n\n\nDe BookApp\n\n\n"); Console.WriteLine("".PadLeft(60, '*')); dal.Separator = '|'; dal.ReadAll(); Console.WriteLine(dal.Message); Pl.BookConsole view = new Pl.BookConsole(dal.Book); view.List(); dal.ConnectionString = "Data/Book2"; dal.Create('|'); Console.WriteLine(dal.Message); }