Example #1
0
 public CommentsController(ICommentRepository commentRepository,
                           IFetchPostService fetchPostService,
                           IUserRepository userRepository,
                           CommentResponseMapper commentResponseMapper)
 {
     _userRepository        = userRepository;
     _commentResponseMapper = commentResponseMapper;
     _commentRepository     = commentRepository;
     _fetchPostService      = fetchPostService;
 }
Example #2
0
 public UserController(IUserRepository userRepository,
                       ICommentRepository commentRepository,
                       UserResponseMapper userResponseMapper,
                       CommentResponseMapper commentResponseMapper,
                       PostResponseMapper postResponseMapper,
                       IFetchPostService fetchPostService)
 {
     _userRepository        = userRepository;
     _commentRepository     = commentRepository;
     _userResponseMapper    = userResponseMapper;
     _commentResponseMapper = commentResponseMapper;
     _postResponseMapper    = postResponseMapper;
     _fetchPostService      = fetchPostService;
 }