Beispiel #1
0
 public SubsController(IContextService contextService,
     ISubDao subDao,
     IMapper mapper,
     ICommandBus commandBus,
     IUserContext userContext,
     IPostDao postDao,
     IVoteDao voteDao,
     ICommentDao commentDao,
     IPermissionDao permissionDao,
     ICommentNodeHierarchyBuilder commentNodeHierarchyBuilder,
     ICommentTreeContextBuilder commentTreeContextBuilder,
     IPostWrapper postWrapper,
     ISubWrapper subWrapper,
     ICommentWrapper commentWrapper)
 {
     _contextService = contextService;
     _subDao = subDao;
     _mapper = mapper;
     _commandBus = commandBus;
     _userContext = userContext;
     _postDao = postDao;
     _voteDao = voteDao;
     _commentDao = commentDao;
     _permissionDao = permissionDao;
     _commentNodeHierarchyBuilder = commentNodeHierarchyBuilder;
     _commentTreeContextBuilder = commentTreeContextBuilder;
     _postWrapper = postWrapper;
     _subWrapper = subWrapper;
     _commentWrapper = commentWrapper;
 }
Beispiel #2
0
 public MessageWrapper(IMessageDao messageDao,
                       IMembershipService membershipService,
                       ISubDao subDao,
                       IPermissionDao permissionDao,
                       ICommentWrapper commentWrapper,
                       IPostWrapper postWrapper)
 {
     _messageDao        = messageDao;
     _membershipService = membershipService;
     _subDao            = subDao;
     _permissionDao     = permissionDao;
     _commentWrapper    = commentWrapper;
     _postWrapper       = postWrapper;
 }
Beispiel #3
0
 public MessageWrapper(IMessageDao messageDao,
     IMembershipService membershipService,
     ISubDao subDao,
     IPermissionDao permissionDao,
     ICommentWrapper commentWrapper,
     IPostWrapper postWrapper)
 {
     _messageDao = messageDao;
     _membershipService = membershipService;
     _subDao = subDao;
     _permissionDao = permissionDao;
     _commentWrapper = commentWrapper;
     _postWrapper = postWrapper;
 }
Beispiel #4
0
 public CommentsController(ICommandBus commandBus,
     IUserContext userContext,
     ICommentWrapper commentWrapper,
     ICommentTreeContextBuilder commentTreeContextBuilder,
     ICommentNodeHierarchyBuilder commentNodeHierarchyBuilder,
     ICommentDao commentDao)
 {
     _commandBus = commandBus;
     _userContext = userContext;
     _commentWrapper = commentWrapper;
     _commentTreeContextBuilder = commentTreeContextBuilder;
     _commentNodeHierarchyBuilder = commentNodeHierarchyBuilder;
     _commentDao = commentDao;
 }
Beispiel #5
0
 public CommentsController(ICommandBus commandBus,
                           IUserContext userContext,
                           ICommentWrapper commentWrapper,
                           ICommentTreeContextBuilder commentTreeContextBuilder,
                           ICommentNodeHierarchyBuilder commentNodeHierarchyBuilder,
                           ICommentDao commentDao)
 {
     _commandBus                  = commandBus;
     _userContext                 = userContext;
     _commentWrapper              = commentWrapper;
     _commentTreeContextBuilder   = commentTreeContextBuilder;
     _commentNodeHierarchyBuilder = commentNodeHierarchyBuilder;
     _commentDao                  = commentDao;
 }
Beispiel #6
0
 public CommentBuilderTests()
 {
     _commentService              = new Mock <ICommentService>();
     _commentDao                  = new Mock <ICommentDao>();
     _membershipService           = new Mock <IMembershipService>();
     _subDao                      = new Mock <ISubDao>();
     _postDao                     = new Mock <IPostDao>();
     _permissionDao               = new Mock <IPermissionDao>();
     _voteDao                     = new Mock <IVoteDao>();
     _reportDao                   = new Mock <IReportDao>();
     _commentWrapper              = new CommentWrapper(_commentDao.Object, _membershipService.Object, _subDao.Object, _postDao.Object, _permissionDao.Object, _voteDao.Object, _reportDao.Object);
     _commentTreeBuilder          = new CommentTreeBuilder(_commentService.Object);
     _commentTreeContextBuilder   = new CommentTreeContextBuilder();
     _commentNodeHierarchyBuilder = new CommentNodeHierarchyBuilder(_commentWrapper);
 }
Beispiel #7
0
 public CommentBuilderTests()
 {
     _commentService = new Mock<ICommentService>();
     _commentDao = new Mock<ICommentDao>();
     _membershipService = new Mock<IMembershipService>();
     _subDao = new Mock<ISubDao>();
     _postDao = new Mock<IPostDao>();
     _permissionDao = new Mock<IPermissionDao>();
     _voteDao = new Mock<IVoteDao>();
     _reportDao = new Mock<IReportDao>();
     _commentWrapper = new CommentWrapper(_commentDao.Object, _membershipService.Object, _subDao.Object, _postDao.Object, _permissionDao.Object, _voteDao.Object, _reportDao.Object);
     _commentTreeBuilder = new CommentTreeBuilder(_commentService.Object);
     _commentTreeContextBuilder = new CommentTreeContextBuilder();
     _commentNodeHierarchyBuilder = new CommentNodeHierarchyBuilder(_commentWrapper);
 }
Beispiel #8
0
 public UsersController(IMembershipService membershipService,
     ISubDao subDao,
     IModerationDao moderationDao,
     IKarmaDao karmaDao,
     ICommentDao commentDao,
     ICommentWrapper commentWrapper,
     IPostDao postDao,
     IPostWrapper postWrapper,
     IUserContext userContext,
     IContextService contextService)
 {
     _membershipService = membershipService;
     _subDao = subDao;
     _moderationDao = moderationDao;
     _karmaDao = karmaDao;
     _commentDao = commentDao;
     _commentWrapper = commentWrapper;
     _postDao = postDao;
     _postWrapper = postWrapper;
     _userContext = userContext;
     _contextService = contextService;
 }
Beispiel #9
0
 public ReportsController(ILogger <ReportsController> logger,
                          ICommandBus commandBus,
                          IUserContext userContext,
                          ISubDao subDao,
                          ISubWrapper subWrapper,
                          IPermissionDao permissionDao,
                          IPostDao postDao,
                          IPostWrapper postWrapper,
                          ICommentDao commentDao,
                          ICommentWrapper commentWrapper)
 {
     _logger         = logger;
     _commandBus     = commandBus;
     _userContext    = userContext;
     _subDao         = subDao;
     _subWrapper     = subWrapper;
     _permissionDao  = permissionDao;
     _postDao        = postDao;
     _postWrapper    = postWrapper;
     _commentDao     = commentDao;
     _commentWrapper = commentWrapper;
 }
Beispiel #10
0
 public UsersController(IMembershipService membershipService,
                        ISubDao subDao,
                        IModerationDao moderationDao,
                        IKarmaDao karmaDao,
                        ICommentDao commentDao,
                        ICommentWrapper commentWrapper,
                        IPostDao postDao,
                        IPostWrapper postWrapper,
                        IUserContext userContext,
                        IContextService contextService)
 {
     _membershipService = membershipService;
     _subDao            = subDao;
     _moderationDao     = moderationDao;
     _karmaDao          = karmaDao;
     _commentDao        = commentDao;
     _commentWrapper    = commentWrapper;
     _postDao           = postDao;
     _postWrapper       = postWrapper;
     _userContext       = userContext;
     _contextService    = contextService;
 }
Beispiel #11
0
 public ReportsController(ILogger<ReportsController> logger,
     ICommandBus commandBus,
     IUserContext userContext,
     ISubDao subDao,
     ISubWrapper subWrapper,
     IPermissionDao permissionDao,
     IPostDao postDao,
     IPostWrapper postWrapper,
     ICommentDao commentDao,
     ICommentWrapper commentWrapper)
 {
     _logger = logger;
     _commandBus = commandBus;
     _userContext = userContext;
     _subDao = subDao;
     _subWrapper = subWrapper;
     _permissionDao = permissionDao;
     _postDao = postDao;
     _postWrapper = postWrapper;
     _commentDao = commentDao;
     _commentWrapper = commentWrapper;
 }
Beispiel #12
0
 public SubsController(IContextService contextService,
                       ISubDao subDao,
                       IMapper mapper,
                       ICommandBus commandBus,
                       IUserContext userContext,
                       IPostDao postDao,
                       IVoteDao voteDao,
                       ICommentDao commentDao,
                       IPermissionDao permissionDao,
                       ICommentNodeHierarchyBuilder commentNodeHierarchyBuilder,
                       ICommentTreeContextBuilder commentTreeContextBuilder,
                       IPostWrapper postWrapper,
                       ISubWrapper subWrapper,
                       ICommentWrapper commentWrapper,
                       IMembershipService membershipService,
                       ISettingsProvider <SubSettings> subSettings,
                       ISubActivityDao subActivityDao,
                       IModerationDao moderationDao)
 {
     _contextService = contextService;
     _subDao         = subDao;
     _mapper         = mapper;
     _commandBus     = commandBus;
     _userContext    = userContext;
     _postDao        = postDao;
     _voteDao        = voteDao;
     _commentDao     = commentDao;
     _permissionDao  = permissionDao;
     _commentNodeHierarchyBuilder = commentNodeHierarchyBuilder;
     _commentTreeContextBuilder   = commentTreeContextBuilder;
     _postwrapper        = postWrapper;
     _subwrapper         = subWrapper;
     _commentWrapper     = commentWrapper;
     _membershiipService = membershipService;
     _subSettings        = subSettings;
     _subActivityDao     = subActivityDao;
     _moderationDao      = moderationDao;
 }
Beispiel #13
0
 public SubsController(IContextService contextService,
     ISubDao subDao,
     IMapper mapper,
     ICommandBus commandBus,
     IUserContext userContext,
     IPostDao postDao,
     IVoteDao voteDao,
     ICommentDao commentDao,
     IPermissionDao permissionDao,
     ICommentNodeHierarchyBuilder commentNodeHierarchyBuilder,
     ICommentTreeContextBuilder commentTreeContextBuilder,
     IPostWrapper postWrapper,
     ISubWrapper subWrapper,
     ICommentWrapper commentWrapper,
     IMembershipService membershipService,
     ISettingsProvider<SubSettings> subSettings,
     ISubActivityDao subActivityDao,
     IModerationDao moderationDao)
 {
     _contextService = contextService;
     _subDao = subDao;
     _mapper = mapper;
     _commandBus = commandBus;
     _userContext = userContext;
     _postDao = postDao;
     _voteDao = voteDao;
     _commentDao = commentDao;
     _permissionDao = permissionDao;
     _commentNodeHierarchyBuilder = commentNodeHierarchyBuilder;
     _commentTreeContextBuilder = commentTreeContextBuilder;
     _postWrapper = postWrapper;
     _subWrapper = subWrapper;
     _commentWrapper = commentWrapper;
     _membershipService = membershipService;
     _subSettings = subSettings;
     _subActivityDao = subActivityDao;
     _moderationDao = moderationDao;
 }
Beispiel #14
0
 public CommentNodeHierarchyBuilder(ICommentWrapper commentWrapper)
 {
     _commentWrapper = commentWrapper;
 }
 public CommentNodeHierarchyBuilder(ICommentWrapper commentWrapper)
 {
     _commentWrapper = commentWrapper;
 }