// Initialize the book database with some test books: static void AddBooks( BookDB bookDB ) { bookDB.AddBook( "The C Programming Language", "Brian W. Kernighan and Dennis M. Ritchie", 19.95m, true ); bookDB.AddBook( "The Unicode Standard 2.0", "The Unicode Consortium", 39.95m, true ); bookDB.AddBook( "The MS-DOS Encyclopedia", "Ray Duncan", 129.95m, false ); bookDB.AddBook( "Dogbert's Clues for the Clueless", "Scott Adams", 12.00m, true ); }
static void AddBooks(BookDB bookDB) // Инициализация базы данных книг с использованием нескольких тестовых книг: { bookDB.AddBook("The C Programming Language", "Brian W. Kernighan and Dennis M. Ritchie", 19.95m, true); bookDB.AddBook("The Unicode Standard 2.0", "The Unicode Consortium", 39.95m, true); bookDB.AddBook("The MS-DOS Encyclopedia", "Ray Duncan", 129.95m, false); bookDB.AddBook("Dogbert's Clues for the Clueless", "Scott Adams", 12.00m, true); }