class TestBasicInteractorFactory(unittest.TestCase): def setUp(self): self.__target = BasicInteractorFactory("persistence") def test_get_add_book_interactor(self): i = self.__target.get_add_book_interactor() self.assertIsInstance(i, AddBookInteractor) def test_get_list_books_by_first_letter_interactor(self): i = self.__target.get_list_books_by_first_letter_interactor() self.assertIsInstance(i, ListBooksByFirstLetterInteractor) def test_get_search_book_interactor(self): i = self.__target.get_search_book_interactor() self.assertIsInstance(i, SearchBookInteractor) def test_get_get_book_details_interactor(self): i = self.__target.get_book_details_interactor() self.assertIsInstance(i, GetBookDetailsInteractor) def test_get_book_type_interactor(self): i = self.__target.get_book_type_interactor() self.assertIsInstance(i, GetBookTypeInteractor)
def setUp(self): self.__target = BasicInteractorFactory("persistence")