コード例 #1
0
        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();
        }
コード例 #2
0
        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();
        }
コード例 #3
0
        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();
        }
コード例 #4
0
        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);
        }