public ProjectController(IProjectRepository projectRepository, IProjectCommentsRepository commentsRepository,
                          IProjectFileRepository fileRepository, IProjectFileInfoRepository fileInfoRepository,
                          IProjectParticipantsRepository participantsRepository, IProjectCategoriesRepository categoriesRepository,
                          IProjectResultRepository resultRepository, IProjectFollowRepository projectFollowRepository,
                          IProjectWinnersRepository winnersRepository, IUserRolesRepository userRolesRepository,
                          IProjectWinnersService winnersService, IQueueExt emailsQueue,
                          IProjectResultVoteRepository resultVoteRepository, BaseSettings settings,
                          ILog log)
 {
     _projectRepository       = projectRepository;
     _commentsRepository      = commentsRepository;
     _fileRepository          = fileRepository;
     _fileInfoRepository      = fileInfoRepository;
     _participantsRepository  = participantsRepository;
     _categoriesRepository    = categoriesRepository;
     _resultRepository        = resultRepository;
     _projectFollowRepository = projectFollowRepository;
     _winnersRepository       = winnersRepository;
     _userRolesRepository     = userRolesRepository;
     _winnersService          = winnersService;
     _emailsQueue             = emailsQueue;
     _resultVoteRepository    = resultVoteRepository;
     _settings = settings;
     _log      = log;
 }
        public ProjectDetailsController(IProjectCommentsRepository commentsRepository, IProjectFileRepository fileRepository,
                                        IProjectFileInfoRepository fileInfoRepository, IProjectVoteRepository voteRepository,
                                        IProjectRepository projectRepository, IProjectParticipantsRepository participantsRepository,
                                        IProjectResultRepository resultRepository, IProjectResultVoteRepository resultVoteRepository,
                                        IProjectFollowRepository projectFollowRepository, IFollowMailSentRepository mailSentRepository,
                                        IQueueExt emailsQueue, IUserRolesRepository userRolesRepository,
                                        IProjectWinnersRepository winnersRepository, ILogFactory logFactory,
                                        IEmailSender emailSender,
                                        BaseSettings settings, IStreamsIdRepository streamsIdRepository)
        {
            _commentsRepository      = commentsRepository;
            _fileRepository          = fileRepository;
            _fileInfoRepository      = fileInfoRepository;
            _voteRepository          = voteRepository;
            _projectRepository       = projectRepository;
            _participantsRepository  = participantsRepository;
            _resultRepository        = resultRepository;
            _resultVoteRepository    = resultVoteRepository;
            _projectFollowRepository = projectFollowRepository;
            _mailSentRepository      = mailSentRepository;
            _emailsQueue             = emailsQueue;
            _userRolesRepository     = userRolesRepository;
            _winnersRepository       = winnersRepository;
            _settings            = settings;
            _emailSender         = emailSender;
            _streamsIdRepository = streamsIdRepository;

            if (logFactory == null)
            {
                throw new ArgumentNullException(nameof(logFactory));
            }
            _log = logFactory.CreateLog(this);
        }
Пример #3
0
 public ProjectWinnersService(IProjectRepository projectRepository, IProjectResultRepository resultRepository,
                              IProjectWinnersRepository winnersRepository, IProjectResultVoteRepository resultVoteRepository)
 {
     _projectRepository    = projectRepository;
     _resultRepository     = resultRepository;
     _winnersRepository    = winnersRepository;
     _resultVoteRepository = resultVoteRepository;
 }
        public ProjectController(IProjectRepository projectRepository, IProjectCommentsRepository commentsRepository,
                                 IProjectFileRepository fileRepository, IProjectFileInfoRepository fileInfoRepository,
                                 IProjectParticipantsRepository participantsRepository, IProjectCategoriesRepository categoriesRepository,
                                 IProjectResultRepository resultRepository, IProjectFollowRepository projectFollowRepository,
                                 IProjectWinnersRepository winnersRepository, IUserRolesRepository userRolesRepository,
                                 IProjectWinnersService winnersService, IQueueExt emailsQueue,
                                 IProjectResultVoteRepository resultVoteRepository, BaseSettings settings,
                                 IProjectExpertsRepository projectExpertsRepository,
                                 IStreamRepository streamRepository, IPersonalDataService personalDataService,
                                 Lykke.Messages.Email.IEmailSender emailSender,
                                 IStreamsIdRepository streamsIdRepository, IExpertsService expertsService,
                                 IKycProfileServiceV2 kycService, ITermsPageRepository termsPageRepository,
                                 ILogFactory logFactory)
        {
            _projectRepository       = projectRepository;
            _commentsRepository      = commentsRepository;
            _fileRepository          = fileRepository;
            _fileInfoRepository      = fileInfoRepository;
            _participantsRepository  = participantsRepository;
            _categoriesRepository    = categoriesRepository;
            _resultRepository        = resultRepository;
            _projectFollowRepository = projectFollowRepository;
            _winnersRepository       = winnersRepository;
            _userRolesRepository     = userRolesRepository;
            _winnersService          = winnersService;
            _emailsQueue             = emailsQueue;
            _resultVoteRepository    = resultVoteRepository;
            _settings = settings;
            _projectExpertsRepository = projectExpertsRepository;
            _streamRepository         = streamRepository;
            _personalDataService      = personalDataService;
            _emailSender         = emailSender;
            _streamsIdRepository = streamsIdRepository;
            _expertsService      = expertsService;
            _kycService          = kycService;
            _termsPageRepository = termsPageRepository;

            if (logFactory == null)
            {
                throw new ArgumentNullException(nameof(logFactory));
            }
            _log = logFactory.CreateLog(this);
        }
 public ProjectDetailsController(IProjectCommentsRepository commentsRepository, IProjectFileRepository fileRepository,
                                 IProjectFileInfoRepository fileInfoRepository, IProjectVoteRepository voteRepository,
                                 IProjectRepository projectRepository, IProjectParticipantsRepository participantsRepository,
                                 IProjectResultRepository resultRepository, IProjectResultVoteRepository resultVoteRepository,
                                 IProjectFollowRepository projectFollowRepository, IMailSentRepository mailSentRepository,
                                 IAzureQueue <string> emailsQueue)
 {
     _commentsRepository      = commentsRepository;
     _fileRepository          = fileRepository;
     _fileInfoRepository      = fileInfoRepository;
     _voteRepository          = voteRepository;
     _projectRepository       = projectRepository;
     _participantsRepository  = participantsRepository;
     _resultRepository        = resultRepository;
     _resultVoteRepository    = resultVoteRepository;
     _projectFollowRepository = projectFollowRepository;
     _mailSentRepository      = mailSentRepository;
     _emailsQueue             = emailsQueue;
 }
 public ProjectDetailsController(IProjectCommentsRepository commentsRepository, IProjectFileRepository fileRepository,
                                 IProjectFileInfoRepository fileInfoRepository, IProjectVoteRepository voteRepository,
                                 IProjectRepository projectRepository, IProjectParticipantsRepository participantsRepository,
                                 IProjectResultRepository resultRepository, IProjectResultVoteRepository resultVoteRepository,
                                 IProjectFollowRepository projectFollowRepository, IFollowMailSentRepository mailSentRepository,
                                 IQueueExt emailsQueue, IUserRolesRepository userRolesRepository,
                                 IProjectWinnersRepository winnersRepository)
 {
     _commentsRepository      = commentsRepository;
     _fileRepository          = fileRepository;
     _fileInfoRepository      = fileInfoRepository;
     _voteRepository          = voteRepository;
     _projectRepository       = projectRepository;
     _participantsRepository  = participantsRepository;
     _resultRepository        = resultRepository;
     _resultVoteRepository    = resultVoteRepository;
     _projectFollowRepository = projectFollowRepository;
     _mailSentRepository      = mailSentRepository;
     _emailsQueue             = emailsQueue;
     _userRolesRepository     = userRolesRepository;
     _winnersRepository       = winnersRepository;
 }