Skip to content

Commit

Permalink
+"abstract" interactor factory.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroanan committed May 31, 2014
1 parent bedbc3f commit f1d4cb1
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
10 changes: 10 additions & 0 deletions aquarius/InteractorFactory.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
class InteractorFactory(object):

def get_add_book_interactor(self, persistence):
pass

def get_list_books_by_first_letter_interactor(self, persistence):
pass

def get_search_book_interactor(self, persistence):
pass
17 changes: 17 additions & 0 deletions tests/TestInteractorFactory.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import unittest
from aquarius.InteractorFactory import InteractorFactory


class TestInteractorFactory(unittest.TestCase):

def setUp(self):
self.__f = InteractorFactory()

def test_get_add_book_interactor(self):
self.__f.get_add_book_interactor("persistence")

def test_get_list_books_by_first_letter_interactor(self):
self.__f.get_list_books_by_first_letter_interactor("persistence")

def test_get_search_book_interactor(self):
self.__f.get_search_book_interactor("persistence")

0 comments on commit f1d4cb1

Please sign in to comment.