예제 #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;
 }
예제 #2
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;
 }
예제 #3
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;
 }
예제 #4
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);
 }
예제 #5
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);
 }
예제 #6
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;
 }
예제 #7
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;
 }
예제 #8
0
 public PostsController(ISubDao subDao,
     ISubWrapper subWrapper,
     IPostDao postDao,
     IPostWrapper postWrapper,
     IUserContext userContext,
     ICommandBus commandBus,
     IContextService contextService,
     ICommentTreeContextBuilder commentTreeContextBuilder,
     ICommentDao commentDao,
     ISubActivityDao subActivityDao,
     ICommentNodeHierarchyBuilder commentNodeHierarchyBuilder)
 {
     _subDao = subDao;
     _subWrapper = subWrapper;
     _postDao = postDao;
     _postWrapper = postWrapper;
     _userContext = userContext;
     _commandBus = commandBus;
     _contextService = contextService;
     _commentTreeContextBuilder = commentTreeContextBuilder;
     _commentDao = commentDao;
     _subActivityDao = subActivityDao;
     _commentNodeHierarchyBuilder = commentNodeHierarchyBuilder;
 }
예제 #9
0
 public PostsController(ISubDao subDao,
                        ISubWrapper subWrapper,
                        IPostDao postDao,
                        IPostWrapper postWrapper,
                        IUserContext userContext,
                        ICommandBus commandBus,
                        IContextService contextService,
                        ICommentTreeContextBuilder commentTreeContextBuilder,
                        ICommentDao commentDao,
                        ISubActivityDao subActivityDao,
                        ICommentNodeHierarchyBuilder commentNodeHierarchyBuilder)
 {
     _subDao                      = subDao;
     _subWrapper                  = subWrapper;
     _postDao                     = postDao;
     _postWrapper                 = postWrapper;
     _userContext                 = userContext;
     _commandBus                  = commandBus;
     _contextService              = contextService;
     _commentTreeContextBuilder   = commentTreeContextBuilder;
     _commentDao                  = commentDao;
     _subActivityDao              = subActivityDao;
     _commentNodeHierarchyBuilder = commentNodeHierarchyBuilder;
 }