コード例 #1
0
 /** {@inheritdoc} */
 protected function setUp()
 {
     $this->repository = new LocalBookRepository();
     $this->repository->clear();
 }
コード例 #2
0
 private function clearDatabase()
 {
     $this->books->clear();
     $this->reservations->clear();
 }
コード例 #3
0
 private function addBook(UuidInterface $bookId, $title, $authors, $isbn)
 {
     $this->repository->save(new Book($bookId, $title, $authors, $isbn));
 }