Esempio n. 1
0
 public PostController(
     IAddPostUseCase addPostUseCase,
     IRemovePostUseCase removePostUseCase,
     IUpdatePostUseCase updatePostUseCase,
     IGetAllPostUseCase getAllPostUseCase,
     IGetByIdPostUseCase getByIdPostUseCase,
     IGetByIdTopicUseCase getByIdTopicUseCase,
     IGetByIdUserUseCase getByIdUserUseCase)
 {
     this.addPostUseCase      = addPostUseCase;
     this.removePostUseCase   = removePostUseCase;
     this.updatePostUseCase   = updatePostUseCase;
     this.getAllPostUseCase   = getAllPostUseCase;
     this.getByIdPostUseCase  = getByIdPostUseCase;
     this.getByIdTopicUseCase = getByIdTopicUseCase;
     this.getByIdUserUseCase  = getByIdUserUseCase;
 }
Esempio n. 2
0
 public CommentController(
     IAddCommentUseCase addCommentUseCase,
     IRemoveCommentUseCase removeCommentUseCase,
     IUpdateCommentUseCase updateCommentUseCase,
     IGetAllCommentUseCase getAllCommentUseCase,
     IGetByIdCommentUseCase getByIdCommentUseCase,
     IGetByIdPostUseCase getByIdPostUseCase,
     IGetByIdUserUseCase getByIdUserUseCase)
 {
     this.addCommentUseCase     = addCommentUseCase;
     this.removeCommentUseCase  = removeCommentUseCase;
     this.updateCommentUseCase  = updateCommentUseCase;
     this.getAllCommentUseCase  = getAllCommentUseCase;
     this.getByIdCommentUseCase = getByIdCommentUseCase;
     this.getByIdPostUseCase    = getByIdPostUseCase;
     this.getByIdUserUseCase    = getByIdUserUseCase;
 }