public ThreadsController(IThreadRepository threadRepo, IPostRepository postRepo, IMapper mapper, IEventBus eventBus)
 {
     _threadRepo = threadRepo;
     _postRepo   = postRepo;
     _mapper     = mapper;
     _eventBus   = eventBus;
 }
Esempio n. 2
0
 public TagController(
     ITagRepository tagRepository,
     IThreadRepository threadRepository)
 {
     this._tagRepository    = tagRepository;
     this._threadRepository = threadRepository;
 }
 public PostsController(IPostRepository postRepo, IThreadRepository threadRepo, IMapper mapper, IEventBus ev)
 {
     _postRepo   = postRepo;
     _threadRepo = threadRepo;
     _mapper     = mapper;
     _eventBus   = ev;
 }
 public ThreadController()
 {
     var context = new DefaultDbConext();
     _threadRepository = new ThreadRepository(context);
     _tagRepository = new TagRepository(context);
     _feedFactory = new FeedFactory();
 }
Esempio n. 5
0
 public GroupManager(IGroupRepository groupRepository, IThreadRepository threadRepository, IMapper mapper, IContactRepository contactRepository)
 {
     _groupRepository   = groupRepository;
     _threadRepository  = threadRepository;
     _mapper            = mapper;
     _contactRepository = contactRepository;
 }
Esempio n. 6
0
 public CollaborationService(IHubContext <CollaborationHub> hubContext, IThreadRepository threadRepo, IPostRepository postRepo, IMapper mapper)
 {
     _hubContext = hubContext;
     _threadRepo = threadRepo;
     _postRepo   = postRepo;
     _mapper     = mapper;
 }
Esempio n. 7
0
 public BoardController(IBoardRepository boardRepository,
                        IPostRepository postRepository,
                        IThreadRepository threadRepository)
 {
     _boardRepository  = boardRepository;
     _postRepository   = postRepository;
     _threadRepository = threadRepository;
 }
        public ThreadController()
        {
            var context = new DefaultDbConext();

            _threadRepository = new ThreadRepository(context);
            _tagRepository    = new TagRepository(context);
            _feedFactory      = new FeedFactory();
        }
Esempio n. 9
0
 public HomeController(IForumRepository forumRepository,
                       IThreadRepository threadRepository,
                       IPostRepository postRepository)
 {
     this.forumRepository  = forumRepository;
     this.threadRepository = threadRepository;
     this.postRepository   = postRepository;
 }
Esempio n. 10
0
 public PostService(IPostRepository postRepository, IFileRepository fileRepository, IThreadRepository threadRepository, IBannedIpRepository bannedIpRepository, IBoardRepository boardRepository)
 {
     this.postRepository     = postRepository;
     this.fileRepository     = fileRepository;
     this.threadRepository   = threadRepository;
     this.bannedIpRepository = bannedIpRepository;
     this.boardRepository    = boardRepository;
 }
Esempio n. 11
0
 public PostService(IQuestionsElasticRepository questionsElasticRepository, IAnswerElasticRepository answerElasticRepository, IThreadRepository threadRepository,
                    IPostsRepository postsRepository, IElasticSuggestionHelper elasticSuggestionHelper)
 {
     this.questionsElasticRepository = questionsElasticRepository;
     this.answerElasticRepository    = answerElasticRepository;
     this.threadRepository           = threadRepository;
     this.postsRepository            = postsRepository;
     this.elasticSuggestionHelper    = elasticSuggestionHelper;
 }
Esempio n. 12
0
        public ThreadService(IThreadRepository threadRepository, IQuestionsElasticRepository questionsElasticRepository,
                             IPostsRepository postsRepository, IElasticSuggestionHelper elasticSuggestionHelper)
        {
            this.threadRepository           = threadRepository;
            this.questionsElasticRepository = questionsElasticRepository;
            this.postsRepository            = postsRepository;

            this.elasticSuggestionHelper = elasticSuggestionHelper;
        }
 public ThreadService(
     IThreadRepository threadRepository,
     IMessageRepository messageRepository,
     IUserService userService)
 {
     _threadRepository  = threadRepository;
     _messageRepository = messageRepository;
     _userService       = userService;
 }
Esempio n. 14
0
 public AdminController(RoleManager <IdentityRole> rolesManager,
                        UserManager <IdentityUser> usersManager,
                        IBoardRepository boardRepository,
                        IThreadRepository threadRepository)
 {
     this.rolesManager      = rolesManager;
     this.usersManager      = usersManager;
     this._boardRepository  = boardRepository;
     this._threadRepository = threadRepository;
 }
Esempio n. 15
0
 public ThreadController(IAccountRepository accountRepository,
                         IForumRepository forumRepository,
                         IThreadRepository threadRepository,
                         IPostRepository postRepository)
 {
     this.accountRepository = accountRepository;
     this.forumRepository   = forumRepository;
     this.threadRepository  = threadRepository;
     this.postRepository    = postRepository;
 }
Esempio n. 16
0
 public UnitOfWork(DbContext context, IPostRepository postRepository,
                   IThreadRepository threadRepository, INotificationRepository notificationRepository,
                   IUserProfileRepository userProfileRepository, ITopicRepository topicRepository)
 {
     _context      = context;
     Posts         = postRepository;
     Threads       = threadRepository;
     Notifications = notificationRepository;
     UserProfiles  = userProfileRepository;
     Topics        = topicRepository;
 }
Esempio n. 17
0
 public ThreadService(
     IThreadRepository threadRepository,
     IPostRepository postRepository,
     IFileRepository filesRepository,
     IBoardRepository boardRepository)
 {
     this.threadRepository = threadRepository;
     this.postRepository   = postRepository;
     this.fileRepository   = filesRepository;
     this.boardRepository  = boardRepository;
 }
Esempio n. 18
0
 public ThreadController(
     IThreadRepository threadRepository,
     IReplyRepository replyRepository,
     ITagRepository tagRepository,
     UserManager <ApplicationUser> userManager)
 {
     this._replyRepository  = replyRepository;
     this._threadRepository = threadRepository;
     this._tagRepository    = tagRepository;
     this._userManager      = userManager;
 }
Esempio n. 19
0
 public CustomerService(ICustomerRepository customerRepository, ITicketService ticketService, IThreadRepository threadRepository, IFirebaseCustomerRepository fbCustomerRepository, IAgentService agentService, IChannelService channelService, ICustomerCounterService counterService, IOptions <AppSettings> appSettings)
 {
     _customerRepository   = customerRepository;
     _threadRepository     = threadRepository;
     _ticketService        = ticketService;
     _fbCustomerRepository = fbCustomerRepository;
     _counterService       = counterService;
     _agentService         = agentService;
     _channelService       = channelService;
     _appSettings          = appSettings;
 }
Esempio n. 20
0
 public ThreadManager(IPartnerRepository partnerRepository, IThreadRepository threadRepository, IMessageRepository messageRepository, IGroupRepository groupRepository,
                      IMapper mapper, IContactRepository contactRepository, ITeamRepository teamRepository, ILogRepository logRepository)
 {
     _partnerRepository = partnerRepository;
     _threadRepository  = threadRepository;
     _messageRepository = messageRepository;
     _groupRepository   = groupRepository;
     _mapper            = mapper;
     _contactRepository = contactRepository;
     _teamRepository    = teamRepository;
     _logRepository     = logRepository;
 }
Esempio n. 21
0
 public ThreadService(IThreadRepository threadRepository, IFirebaseThreadRepository fbThreadRepository, IReferralService referralService, IMessageService messageService, IChannelService channelService, IAgentService agentService, ICounterService counterService, ICounterRepository counterRepository, IMessageRepository messageRepository)
 {
     _threadRepository   = threadRepository;
     _fbThreadRepository = fbThreadRepository;
     _messageRepository  = messageRepository;
     _counterRepository  = counterRepository;
     _counterService     = counterService;
     _channelService     = channelService;
     _agentService       = agentService;
     _referralService    = referralService;
     _messageService     = messageService;
 }
        public ThreadRepositoryTests()
        {
            // Arrange
            var user     = new UserEntity();
            var comments = new List <CommentEntity>()
            {
                new CommentEntity()
            };

            commentsMock       = new Mock <ICommentRepository>();
            _threadRepository  = new ThreadRepository(DbContext, commentsMock.Object);
            _commentRepository = new CommentRepository(DbContext);
            DbContext.Threads.Add(new ThreadEntity {
                Title = "Thread1", Content = "Thread1 content", Author = user, Comments = comments
            });
            DbContext.Threads.Add(new ThreadEntity {
                Title = "Thread2", Content = "Thread2 content", Author = user, Comments = comments
            });
            DbContext.SaveChanges();
        }
Esempio n. 23
0
 public ForumController(IForumRepository forumRepository, IThreadRepository threadRepository, IAccountRepository accountRepository)
 {
     this.forumRepository   = forumRepository;
     this.threadRepository  = threadRepository;
     this.accountRepository = accountRepository;
 }
Esempio n. 24
0
 public DetailModel(IThreadRepository threadRepository, IMessageRepository messageRepository)
 {
     this.threadRepository  = threadRepository;
     this.messageRepository = messageRepository;
 }
Esempio n. 25
0
 public CounterService(ICounterRepository counterRepository, IThreadRepository threadRepository)
 {
     _threadRepository  = threadRepository;
     _counterRepository = counterRepository;
 }
Esempio n. 26
0
 public ThreadService(IThreadRepository threadRepo, ILogger <ThreadService> logger)
 {
     _threadRepo = threadRepo;
     _logger     = logger;
 }
Esempio n. 27
0
 public ThreadService(IThreadRepository threadRepository)
 {
     _threadRepository = threadRepository;
 }
 public PostUpdateIntegrationEventHandler(ICollaborationService collaborationService, IThreadRepository threadRepository, IPostRepository postRepository)
 {
     _collaborationService = collaborationService;
 }
Esempio n. 29
0
 public CommentController(ICommentRepository commentRepository, IThreadRepository threadRepository, SaitynaiDbContext context)
 {
     _commentRepository = commentRepository;
     _threadRepository  = threadRepository;
     _context           = context;
 }
Esempio n. 30
0
 public UpdateThreadIntervalCommandHandler(IThreadRepository threadRepository)
 {
     _threadRepository = threadRepository;
 }
Esempio n. 31
0
 public ProcessOrderCommandHandler(IOrderRepository orderRepository, IThreadRepository threadRepository)
 {
     _orderRepository  = orderRepository;
     _threadRepository = threadRepository;
 }