Exemple #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="createBookUseCase"></param>
 /// <param name="createBookPresenter"></param>
 /// <param name="updateBookUseCase"></param>
 /// <param name="updateBookPresenter"></param>
 /// <param name="getAllBooksUseCase"></param>
 /// <param name="getAllBooksPresenter"></param>
 /// <param name="getBookByIdUseCase"></param>
 /// <param name="getBookByIdPresenter"></param>
 /// <param name="deleteBookUseCase"></param>
 /// <param name="deleteBookPresenter"></param>
 /// <param name="getBookSubscriptionsUseCase"></param>
 /// <param name="getBookSubscriptionPresenter"></param>
 public BookController(
     ICreateBookUseCase createBookUseCase,
     CreateBookPresenter createBookPresenter,
     IUpdateBookUseCase updateBookUseCase,
     UpdateBookPresenter updateBookPresenter,
     IGetAllBooksUseCase getAllBooksUseCase,
     GetAllBooksPresenter getAllBooksPresenter,
     IGetBookByIdUseCase getBookByIdUseCase,
     GetBookByIdPresenter getBookByIdPresenter,
     IDeleteBookUseCase deleteBookUseCase,
     DeleteBookPresenter deleteBookPresenter,
     IGetBookSubscriptionsUseCase getBookSubscriptionsUseCase,
     GetBookSubscriptionPresenter getBookSubscriptionPresenter)
 {
     _createBookUseCase            = createBookUseCase;
     _createBookPresenter          = createBookPresenter;
     _updateBookUseCase            = updateBookUseCase;
     _updateBookPresenter          = updateBookPresenter;
     _getAllBooksUseCase           = getAllBooksUseCase;
     _getAllBooksPresenter         = getAllBooksPresenter;
     _getBookByIdUseCase           = getBookByIdUseCase;
     _getBookByIdPresenter         = getBookByIdPresenter;
     _deleteBookUseCase            = deleteBookUseCase;
     _deleteBookPresenter          = deleteBookPresenter;
     _getBookSubscriptionsUseCase  = getBookSubscriptionsUseCase;
     _getBookSubscriptionPresenter = getBookSubscriptionPresenter;
 }
 public BooksController(IGetBooksUseCase getBooksUseCase,
                        IGetBooksDetailsUseCase getBooksDetailsUseCase,
                        IAddBookUseCase addBookUseCase,
                        IUpdateBookUseCase updateBookUseCase,
                        IDeleteBookUseCase deleteBookUseCase)
 {
     _getBooksUseCase        = getBooksUseCase;
     _getBooksDetailsUseCase = getBooksDetailsUseCase;
     _addBookUseCase         = addBookUseCase;
     _updateBookUseCase      = updateBookUseCase;
     _deleteBookUseCase      = deleteBookUseCase;
 }