Exemplo n.º 1
0
 private static ILibrary createLibrary()
 {
     ILibrary library = new Library();
     library.addBook("978-0450011849", "Frank Herbert", "Dune", BookCategory.SCIENCE_FICTION, 3);
     library.addBook("978-0441104024", "Frank Herbert", "Children of Dune", BookCategory.SCIENCE_FICTION, 1);
     return library;
 }
Exemplo n.º 2
0
 private static ILibrary createFullLibrary()
 {
     ILibrary library = new Library();
     library.addBook("978-0450011849", "Frank Herbert", "Dune", BookCategory.SCIENCE_FICTION, 2);
     library.addBook("978-0441104024", "Frank Herbert", "Children of Dune", BookCategory.SCIENCE_FICTION, 1);
     library.enrollment(42, "Teszt Elek", new DateTime(2012, 2, 20));
     library.enrollment(30, "Nemecsek Erno", new DateTime(2011, 10, 7));
     return library;
 }