Exemplo n.º 1
0
class ProductManager:
    """Coordonatorul aplicatiei"""

    def __init__(self):
        self.__validator = ProductValidator()
        self.__repo = ProductRepository(self.__validator)
        self.__contr = ProductController(self.__repo)
        self.__prodUi = ProductListUi(self.__contr)

    def main(self):
        self.__prodUi.run()
Exemplo n.º 2
0
 def __init__(self):
     self.__validator = ProductValidator()
     self.__repo = ProductRepository(self.__validator)
     self.__contr = ProductController(self.__repo)
     self.__prodUi = ProductListUi(self.__contr)