Example #1
0
 public CommentController(ICommentRepository _commentRepository,
                          ICommentVoteRepository _commentVoteRepository,
                          IUserRepository _userRepository,
                          ICounterRepository _counterRepository,
                          IPersistentLoginHandler _loginHandler,
                          INotificationRepository _notificationRepository,
                          IPuzzleRepository _puzzleRepository) : base(_userRepository, _loginHandler)
 {
     commentRepository      = _commentRepository;
     commentVoteRepository  = _commentVoteRepository;
     counterRepository      = _counterRepository;
     notificationRepository = _notificationRepository;
     puzzleRepository       = _puzzleRepository;
 }
Example #2
0
 public CommentSorter(ICommentVoteRepository _voteRepo, IUserRepository _userRepo)
 {
     voteRepo = _voteRepo;
     userRepo = _userRepo;
 }
Example #3
0
 public CommentVoteLogic(ICommentVoteRepository commentVoteRepository, IMapper mapper)
 {
     this._commentVoteRepository = commentVoteRepository;
     this._mapper = mapper;
 }
 public CommentVoteService(ICommentVoteRepository commentVoteRepository, IUnitOfWork unitOfWork)
 {
     this._commentVoteRepository = commentVoteRepository;
     this._unitOfWork            = unitOfWork;
 }
 public CommentSorter(List <Models.Comment> list, ICommentVoteRepository _voteRepo, IUserRepository _userRepo)
 {
     voteRepo = _voteRepo;
     userRepo = _userRepo;
     Ordered  = new ReadOnlyCollection <Comment>(OrderRecursively(list, null, 0));
 }