Ejemplo n.º 1
0
 public void SaveTest()
 {
     libraryDepartmentRepository.Save(department1);
     Assert.AreEqual(libraryDepartmentRepository.GetItems().Count(), countItems + 1);
     libraryDepartmentRepository.Save(department2);
     Assert.AreEqual(libraryDepartmentRepository.GetItems().Count(), countItems + 2);
     libraryDepartmentRepository.Save(department2);
     Assert.AreEqual(libraryDepartmentRepository.GetItems().Count(), countItems + 2);
     libraryDepartmentRepository.Remove(department2);
     libraryDepartmentRepository.Remove(department1);
 }
Ejemplo n.º 2
0
 public void ClearRepository()
 {
     bookRepository.Remove(book);
     readerRepository.Remove(reader);
     librarianRepository.Remove(librarian);
     libraryDepartmentRepository.Remove(department);
 }
 public void ClearRepository()
 {
     librarianRepository.Remove(librarian2);
     librarianRepository.Remove(librarian1);
     libraryDepartmentRepository.Remove(department);
 }
Ejemplo n.º 4
0
 public void ClearRepository()
 {
     libraryDepartmentRepository.Remove(department);
 }
Ejemplo n.º 5
0
 public void ClearRepository()
 {
     bookRepository.Remove(book2);
     bookRepository.Remove(book1);
     libraryDepartmentRepository.Remove(department);
 }