Example #1
0
 public PostService(ISettingsService settingsService, IRoleService roleService, IPostRepository postRepository, ITopicRepository topicRepository)
 {
     this._postRepository = postRepository;
     this._topicRepository = topicRepository;
     this._roleService = roleService;
     this._settingsService = settingsService;
 }
Example #2
0
 public BOARDS(
     IBoardRepository boardRepository,
     ITopicRepository topicRepository)
 {
     _boardRepository = boardRepository;
     _topicRepository = topicRepository;
 }
Example #3
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="membershipRepository"> </param>
 /// <param name="settingsRepository"> </param>
 /// <param name="emailService"> </param>
 /// <param name="localizationService"> </param>
 /// <param name="activityService"> </param>
 /// <param name="privateMessageService"> </param>
 /// <param name="membershipUserPointsService"> </param>
 /// <param name="topicNotificationService"> </param>
 /// <param name="voteService"> </param>
 /// <param name="badgeService"> </param>
 /// <param name="categoryNotificationService"> </param>
 /// <param name="loggingService"></param>
 /// <param name="uploadedFileService"></param>
 /// <param name="postRepository"></param>
 /// <param name="pollVoteRepository"></param>
 /// <param name="pollAnswerRepository"></param>
 /// <param name="pollRepository"></param>
 /// <param name="topicRepository"></param>
 /// <param name="favouriteRepository"></param>
 /// <param name="categoryService"></param>
 public MembershipService(IMembershipRepository membershipRepository, ISettingsRepository settingsRepository,
     IEmailService emailService, ILocalizationService localizationService, IActivityService activityService,
     IPrivateMessageService privateMessageService, IMembershipUserPointsService membershipUserPointsService,
     ITopicNotificationService topicNotificationService, IVoteService voteService, IBadgeService badgeService,
     ICategoryNotificationService categoryNotificationService, ILoggingService loggingService, IUploadedFileService uploadedFileService,
     IPostRepository postRepository, IPollVoteRepository pollVoteRepository, IPollAnswerRepository pollAnswerRepository,
     IPollRepository pollRepository, ITopicRepository topicRepository, IFavouriteRepository favouriteRepository,
     ICategoryService categoryService)
 {
     _membershipRepository = membershipRepository;
     _settingsRepository = settingsRepository;
     _emailService = emailService;
     _localizationService = localizationService;
     _activityService = activityService;
     _privateMessageService = privateMessageService;
     _membershipUserPointsService = membershipUserPointsService;
     _topicNotificationService = topicNotificationService;
     _voteService = voteService;
     _badgeService = badgeService;
     _categoryNotificationService = categoryNotificationService;
     _loggingService = loggingService;
     _uploadedFileService = uploadedFileService;
     _postRepository = postRepository;
     _pollVoteRepository = pollVoteRepository;
     _pollAnswerRepository = pollAnswerRepository;
     _pollRepository = pollRepository;
     _topicRepository = topicRepository;
     _favouriteRepository = favouriteRepository;
     _categoryService = categoryService;
 }
        public StatusReportController(IStatusReportRepository repository, ITopicRepository topicRepository, IProjectRepository projectRepository, IResourceRepository resourceRepository, IStatusReportManager statusReportManager, ITagRepository tagRepository)
        {
            _repository = repository;
            _topicRepository = topicRepository;
            _projectRepository = projectRepository;
            _resourceRepository = resourceRepository;
            _tagRepository = tagRepository;
            _statusReportManager = statusReportManager;
            Mapper.CreateMap<StatusReport, StatusReportViewModel>()
                .ForMember(m => m.NumberOfStatusItems, opt => opt.ResolveUsing<NumberOfStatusItemsFormatter>());
            Mapper.CreateMap<StatusItem, StatusReportItemViewModel>()
                .ForMember(m => m.TagsString, opt =>
                {
                    opt.MapFrom(src =>
                        String.Join(",", (from tag in src.Tags
                                          select tag.Name)));
                    opt.NullSubstitute(String.Empty);
                }
                                      );

            Mapper.CreateMap<StatusReportItemViewModel, StatusItem>();

            Mapper.CreateMap<Project, ProjectViewModel>();

            Mapper.CreateMap<Tag, TagViewModel>();
            //.ForMember(m => m.StatusReportId, opt => opt.M);
            //.ForMember(dest => dest.ProjectLeadFullName, opt => opt.MapFrom(src => src.Project.Lead.FullName))
            //.ForMember(dest => dest.ProjectTeamLeadFullName, opt => opt.MapFrom(src => src.Project.Team.Lead.FullName));
        }
Example #5
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="tagRepository"></param>
 /// <param name="topicRepository"></param>
 /// <param name="categoryService"></param>
 public TopicTagService(ITopicTagRepository tagRepository, ITopicRepository topicRepository, ICategoryService categoryService, IBadgeService badgeService)
 {
     _tagRepository = tagRepository;
     _topicRepository = topicRepository;
     _categoryService = categoryService;
     _badgeService = badgeService;
 }
Example #6
0
 public UnitOfWork(MessageBoardContext context,ITopicRepository topics,ICompanyRepository companies,IImageRepository images)
 {
     _context = context;
     _topics = topics;
     _companies = companies;
     _images = images;
 }
Example #7
0
 public STATS(
     IUserRepository userRepository,
     ITopicRepository topicRepository
 )
 {
     _userRepository = userRepository;
     _topicRepository = topicRepository;
 }
Example #8
0
 public TopicService(IMembershipUserPointsService membershipUserPointsService,
     ISettingsService settingsService, ITopicRepository topicRepository, IPostRepository postRepository, ITopicNotificationService topicNotificationService)
 {
     _membershipUserPointsService = membershipUserPointsService;
     _settingsService = settingsService;
     _topicRepository = topicRepository;
     _postRepository = postRepository;
     _topicNotificationService = topicNotificationService;
 }
Example #9
0
 public QuizManager(
     ITopicRepository topicRepository,
     IQuestionRepository questionRepository,
     IAnswerRepository answerRepository)
 {
     _topicRepository    = topicRepository;
     _questionRepository = questionRepository;
     _answerRepository   = answerRepository;
 }
 public CsvStatusEtlBridge(IStatusReportRepository statusReportRepository, IProjectRepository projectRepository, ITopicRepository topicRepository, IResourceRepository resourceRepository, ITeamRepository teamRepository, IDepartmentRepository departmentRepository)
 {
     StatusReportRepository = statusReportRepository;
     ProjectRepository = projectRepository;
     TopicRepository = topicRepository;
     ResourceRepository = resourceRepository;
     TeamRepository = teamRepository;
     DepartmentRepository = departmentRepository;
 }
Example #11
0
 public TopicService(IMembershipUserPointsService membershipUserPointsService,
                     ISettingsService settingsService, ITopicRepository topicRepository, IPostRepository postRepository, IMVCForumAPI api, ITopicNotificationService topicNotificationService)
 {
     _membershipUserPointsService = membershipUserPointsService;
     _settingsService             = settingsService;
     _topicRepository             = topicRepository;
     _postRepository           = postRepository;
     _api                      = api;
     _topicNotificationService = topicNotificationService;
 }
Example #12
0
 public TOPIC(
     IReplyRepository replyRepository,
     ITopicRepository topicRepository,
     IBoardRepository boardRepository
 )
 {
     _replyRepository = replyRepository;
     _topicRepository = topicRepository;
     _boardRepository = boardRepository;
 }
Example #13
0
 public BOARD(
     IBoardRepository boardRepository,
     ITopicRepository topicRepository,
     IReplyRepository replyRepository
 )
 {
     _boardRepository = boardRepository;
     _topicRepository = topicRepository;
     _replyRepository = replyRepository;
 }
 public HomeController(ICurrentUserAccessor currentUserAccessor, ICategoryRepository categoryRepository,
                       ICourseRepository courseRepository, ILessonRepository lessonRepository, IHomeRepository homeRepository, ITopicRepository topicRepository)
 {
     _currentUserAccessor = currentUserAccessor;
     _categoryRepository  = categoryRepository;
     _courseRepository    = courseRepository;
     _lessonRepository    = lessonRepository;
     _homeRepository      = homeRepository;
     _topicRepository     = topicRepository;
 }
    /*==========================================================================================================================
    | CONSTRUCTOR
    \-------------------------------------------------------------------------------------------------------------------------*/
    /// <summary>
    ///   Initializes a new instance of the <see cref="TopicControllerTest"/> with shared resources.
    /// </summary>
    /// <remarks>
    ///   This uses the <see cref="StubTopicRepository"/> to provide data, and then <see cref="CachedTopicRepository"/> to
    ///   manage the in-memory representation of the data. While this introduces some overhead to the tests, the latter is a
    ///   relatively lightweight façade to any <see cref="ITopicRepository"/>, and prevents the need to duplicate logic for
    ///   crawling the object graph. In addition, it initializes a shared <see cref="Topic"/> reference to use for the various
    ///   tests.
    /// </remarks>
    public TopicControllerTest() {

      /*------------------------------------------------------------------------------------------------------------------------
      | Establish dependencies
      \-----------------------------------------------------------------------------------------------------------------------*/
      _topicRepository          = new CachedTopicRepository(new StubTopicRepository());
      _uri                      = new Uri("http://localhost/Web/Web_0/Web_0_1/Web_0_1_1");
      _topic                    = _topicRepository.Load("Root" + _uri.PathAndQuery.Replace("/", ":"))!;

    }
Example #16
0
 public TOPIC(
     IReplyRepository replyRepository,
     ITopicRepository topicRepository,
     IBoardRepository boardRepository
     )
 {
     _replyRepository = replyRepository;
     _topicRepository = topicRepository;
     _boardRepository = boardRepository;
 }
Example #17
0
 public BOARD(
     IBoardRepository boardRepository,
     ITopicRepository topicRepository,
     IReplyRepository replyRepository
     )
 {
     _boardRepository = boardRepository;
     _topicRepository = topicRepository;
     _replyRepository = replyRepository;
 }
 /*==========================================================================================================================
 | CONSTRUCTOR
 \-------------------------------------------------------------------------------------------------------------------------*/
 /// <summary>
 ///   Initializes a new instance of a Topic Controller with necessary dependencies.
 /// </summary>
 /// <returns>A topic controller for loading OnTopic views.</returns>
 public LayoutController(
   ITopicRoutingService topicRoutingService,
   IHierarchicalTopicMappingService<NavigationTopicViewModel> hierarchicalTopicMappingService,
   ITopicRepository topicRepository
 ) : base(
   topicRoutingService,
   hierarchicalTopicMappingService
 ) {
   _topicRepository = topicRepository;
 }
Example #19
0
 public TopicServiceHandler(
     ITokenHelper tokenService, ITopicRepository topicRepository, IClientRepository clientRepository, ICommentRepository commentRepository,
     IMapper mapper)
 {
     _commentRepository = commentRepository;
     _tokenService      = tokenService;
     _topicRepository   = topicRepository;
     _clientRepository  = clientRepository;
     _mapper            = mapper;
 }
Example #20
0
 public ProducerService(IConfiguration configuration,
                        ITopicRepository topicRepository)
 {
     _configuration         = configuration;
     _topicRepository       = topicRepository;
     _producerConfiguration = new ProducerConfig
     {
         BootstrapServers = _configuration["KafkaServer"]
     };
 }
Example #21
0
 /*==========================================================================================================================
 | CONSTRUCTOR
 \-------------------------------------------------------------------------------------------------------------------------*/
 /// <summary>
 ///   Initializes a new instance of a <see cref="LicensesController"/> with necessary dependencies.
 /// </summary>
 public LicensesController(
   ITopicRepository          topicRepository,
   ITopicMappingService      topicMappingService,
   ITopicExportService       topicExportService
 ) : base(
   topicRepository,
   topicMappingService
 ) {
   _topicExportService       = topicExportService?? throw new ArgumentNullException(nameof(topicExportService));
 }
Example #22
0
 public PostService(IMembershipUserPointsService membershipUserPointsService,
     ISettingsService settingsService, IRoleService roleService, IPostRepository postRepository, ITopicRepository topicRepository,
     ILocalizationService localizationService)
 {
     _postRepository = postRepository;
     _topicRepository = topicRepository;
     _roleService = roleService;
     _membershipUserPointsService = membershipUserPointsService;
     _settingsService = settingsService;
     _localizationService = localizationService;
 }
Example #23
0
 public PostService(IRepositoryContext repositoryContext,
                    ITopicRepository topicRepository,
                    IUserRepository userRepository,
                    IPostRepository postRepository,
                    IDomainService domainService) : base(repositoryContext)
 {
     this.topicRepository = topicRepository;
     this.userRepository  = userRepository;
     this.postRepository  = postRepository;
     this.domainService   = domainService;
 }
Example #24
0
 public ServiceBusService(
     IServiceBusClientFactory serviceBusClientFactory,
     IOptions <ServiceBusOptions> options,
     ITopicRepository topicRepository,
     ILogger <ServiceBusService> logger)
 {
     _managementClient  = serviceBusClientFactory.Build();
     _serviceBusOptions = options.Value;
     _topicRepository   = topicRepository ?? throw new ArgumentNullException(nameof(topicRepository));
     _logger            = logger ?? throw new ArgumentNullException(nameof(logger));
 }
        public void IsITopicEntityRepository_GetTopicById()
        {
            DataTable dataTable;

            using (var unitOfWork = UnitOfWorkFactory.Create())
            {
                ITopicRepository repository = ServiceLocator.Current.GetInstance <ITopicRepository>();
                dataTable = repository.GetTopicById(1448, unitOfWork);
            }
            Assert.NotEqual(dataTable.Rows.Count, 0);
        }
Example #26
0
    /*==========================================================================================================================
    | CONSTRUCTOR
    \-------------------------------------------------------------------------------------------------------------------------*/
    /// <summary>
    ///   Initializes a new instance of a Topic View Model with appropriate dependencies.
    /// </summary>
    /// <returns>A Topic view model.</returns>
    public TopicEntityViewModel(ITopicRepository topicRepository, Topic topic) {

      TopicRepository           = topicRepository;
      Topic                     = topic;
      RootTopic                 = topic;

      while (RootTopic.Parent != null) {
        RootTopic = RootTopic.Parent;
      }

    }
Example #27
0
 public GetTopicDetailsOperation(
     IEmployeeCollectionTopicProgressStatusStrategy employeeCollectionTopicProgressStatusStrategy,
     IEmployeeTopicProgressStatusStrategy employeeTopicProgressStatusStrategy,
     IAuthorizationContext authorizationContext,
     ITopicRepository topicRepository)
 {
     _employeeCollectionTopicProgressStatusStrategy = employeeCollectionTopicProgressStatusStrategy;
     _employeeTopicProgressStatusStrategy           = employeeTopicProgressStatusStrategy;
     _authorizationContext = authorizationContext;
     _topicRepository      = topicRepository;
 }
Example #28
0
 public PostService(IRepositoryContext repositoryContext,
                    ITopicRepository topicRepository,
                    IUserRepository userRepository,
                    IPostRepository postRepository,
                    IDomainService domainService) : base(repositoryContext)
 {
     this.topicRepository = topicRepository;
     this.userRepository = userRepository;
     this.postRepository = postRepository;
     this.domainService = domainService;
 }
 public TopicController(
     IMapper mapper,
     ILoggerManager logger,
     ITopicRepository topicRepository,
     IStudentTopicRepository studentTopicRepository)
 {
     _mapper                 = mapper;
     _logger                 = logger;
     _topicRepository        = topicRepository;
     _studentTopicRepository = studentTopicRepository;
 }
Example #30
0
        // GET: /Home/
        public HomeController(IMailService mail, IUnitOfWork unitOfWork)
        {
            _mail = mail;

            //_topicRepo = repository;
            //_companyRepo = compRepo;

            _topicRepo   = unitOfWork.Topics;
            _companyRepo = unitOfWork.Companies;
            _iUnitOfWork = unitOfWork;
        }
Example #31
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;
 }
Example #32
0
        // GET: /Home/
        public HomeController(IMailService mail,IUnitOfWork unitOfWork)
        {
            _mail = mail;

            //_topicRepo = repository;
            //_companyRepo = compRepo;

            _topicRepo = unitOfWork.Topics;
            _companyRepo = unitOfWork.Companies;
            _iUnitOfWork = unitOfWork;
        }
Example #33
0
 public PostService(IMembershipUserPointsService membershipUserPointsService,
                    ISettingsService settingsService, IRoleService roleService, IPostRepository postRepository, ITopicRepository topicRepository,
                    ILocalizationService localizationService)
 {
     _postRepository              = postRepository;
     _topicRepository             = topicRepository;
     _roleService                 = roleService;
     _membershipUserPointsService = membershipUserPointsService;
     _settingsService             = settingsService;
     _localizationService         = localizationService;
 }
Example #34
0
 public UserRepository(DbContext context,
                       ISectionModeratorsRepository sectionModeratorsRep,
                       IMessageRepository messageRep,
                       ITopicRepository topicRep,
                       IProfileReposiory profileRep)
 {
     ctx = context;
     sectionModeratorsRepository = sectionModeratorsRep;
     messageRepository           = messageRep;
     topicRepository             = topicRep;
     profileRepository           = profileRep;
 }
Example #35
0
 public FeedbackService(IFeedbackRepository feedbackRepository,
                        IContactRepository contactRepository,
                        IMessageRepository messageRepository,
                        ITopicRepository topicRepository,
                        IMapper mapper)
 {
     this.feedbackRepository = feedbackRepository;
     this.contactRepository  = contactRepository;
     this.messageRepository  = messageRepository;
     this.topicRepository    = topicRepository;
     this.mapper             = mapper;
 }
Example #36
0
        public TopicControllerTest()
        {
            var config = new MapperConfiguration(opts =>
            {
                opts.AddProfile(new TopicsProfile());
            });

            _mapper = config.CreateMapper();

            _repository = new MockTopicRepository();
            _controller = new TopicsController(_repository, _mapper);
        }
        /*==========================================================================================================================
        | CONSTRUCTOR
        \-------------------------------------------------------------------------------------------------------------------------*/
        /// <summary>
        ///   Initializes a new instance of a Topic Controller with necessary dependencies.
        /// </summary>
        /// <returns>A topic controller for loading OnTopic views.</returns>
        public SitemapController(ITopicRepository topicRepository)
        {
            /*------------------------------------------------------------------------------------------------------------------------
            | Validate parameters
            \-----------------------------------------------------------------------------------------------------------------------*/
            Contract.Requires(topicRepository, nameof(topicRepository));

            /*------------------------------------------------------------------------------------------------------------------------
            | Set dependencies
            \-----------------------------------------------------------------------------------------------------------------------*/
            _topicRepository = topicRepository;
        }
Example #38
0
 public TopicService(ITopicRepository topicRepository, IPostRepository postRepository, ISettingsManager settingsManager, IModerationLogService moderationLogService, IForumService forumService, IEventPublisher eventPublisher, ISearchRepository searchRepository, IUserRepository userRepository, ISearchIndexQueueRepository searchIndexQueueRepository, ITenantService tenantService)
 {
     _topicRepository            = topicRepository;
     _postRepository             = postRepository;
     _settingsManager            = settingsManager;
     _moderationLogService       = moderationLogService;
     _forumService               = forumService;
     _eventPublisher             = eventPublisher;
     _searchRepository           = searchRepository;
     _userRepository             = userRepository;
     _searchIndexQueueRepository = searchIndexQueueRepository;
     _tenantService              = tenantService;
 }
Example #39
0
 public ForumAnswerController(IUserRepository userRepository,
                              IForumAnswerRepository forumAnswerRepository,
                              IForumAnswerVotesRepository forumAnswerVotesRepository,
                              IForumTopicsViewRepository forumAnswersViewRepository,
                              ITopicRepository topicRepository,
                              IUserAttachmentsRepository userAttachmentsRepository,
                              IForumAnswersAttachRepository forumAnswersAttachRepository) : base(userRepository, userAttachmentsRepository, forumAnswerRepository)
 {
     TopicRepository = topicRepository;
     ForumAnswersAttachRepository = forumAnswersAttachRepository;
     ForumAnswerVotesRepository   = forumAnswerVotesRepository;
     ForumAnswersViewRepository   = forumAnswersViewRepository;
 }
 public TopicService(IMapper mapper, ITopicRepository repository,
                     ForumDbContext forumDbContext,
                     ITopicTagRepository topicTagRepository,
                     ITagRepository tagRepository,
                     ICategoryRepository categoryRepository)
 {
     _mapper             = mapper;
     _forumDbContext     = forumDbContext;
     _repository         = repository;
     _topicTagRepository = topicTagRepository;
     _tagRepository      = tagRepository;
     _categoryRepository = categoryRepository;
 }
Example #41
0
		public ForumService(IForumRepository forumRepository, ITopicRepository topicRepository, IPostRepository postRepository, ICategoryRepository categoryRepository, IProfileRepository profileRepository, ITextParsingService textParsingService, ISettingsManager settingsManager, ILastReadService lastReadService, IEventPublisher eventPublisher, IBroker broker)
		{
			_forumRepository = forumRepository;
			_topicRepository = topicRepository;
			_postRepository = postRepository;
			_categoryRepository = categoryRepository;
			_profileRepository = profileRepository;
			_settingsManager = settingsManager;
			_textParsingService = textParsingService;
			_lastReadService = lastReadService;
			_eventPublisher = eventPublisher;
			_broker = broker;
		}
Example #42
0
        public TopicExistValidator()
        {
            topicRepository = new TopicRepository();

            RuleFor(x => x)
            .Cascade(CascadeMode.StopOnFirstFailure)
            .NotNull()
            .WithMessage("O id do tópico não pode ser nulo")
            .NotEmpty()
            .WithMessage("O id do tópico não pode ser vazio")
            .Must(VerifyTopic)
            .WithMessage("Este tópico não existe.");
        }
Example #43
0
 public EntryService(
     IUnitOfWork unitOfWork,
     IEntryRepository entryRepository,
     ITopicRepository topicRepository,
     IEntryToTopicRepository entryToTopicRepository,
     IImageProcessingService imageProcessingService)
 {
     _unitOfWork             = unitOfWork;
     _entryRepository        = entryRepository;
     _topicRepository        = topicRepository;
     _entryToTopicRepository = entryToTopicRepository;
     _imageProcessingService = imageProcessingService;
 }
Example #44
0
 public ForumService(IForumRepository forumRepository, ITopicRepository topicRepository, IPostRepository postRepository, ICategoryRepository categoryRepository, IProfileRepository profileRepository, ITextParsingService textParsingService, ISettingsManager settingsManager, ILastReadService lastReadService, IEventPublisher eventPublisher, IBroker broker)
 {
     _forumRepository    = forumRepository;
     _topicRepository    = topicRepository;
     _postRepository     = postRepository;
     _categoryRepository = categoryRepository;
     _profileRepository  = profileRepository;
     _settingsManager    = settingsManager;
     _textParsingService = textParsingService;
     _lastReadService    = lastReadService;
     _eventPublisher     = eventPublisher;
     _broker             = broker;
 }
Example #45
0
 /*==========================================================================================================================
 | CONSTRUCTOR
 \-------------------------------------------------------------------------------------------------------------------------*/
 /// <summary>
 ///   Initializes a new instance of a Topic Controller with necessary dependencies.
 /// </summary>
 /// <returns>A topic controller for loading OnTopic views.</returns>
 public FormsController(
   ITopicRepository topicRepository,
   ITopicMappingService topicMappingService,
   IReverseTopicMappingService reverseTopicMappingService,
   ISmtpService smtpService
 ) : base(
   topicRepository,
   topicMappingService
 ) {
   _topicMappingService      = topicMappingService;
   _reverseMappingService    = reverseTopicMappingService;
   _smptService              = smtpService;
 }
Example #46
0
 public PostService(IMembershipUserPointsService membershipUserPointsService, IVoteService voteService, IFavouriteService favouriteService, IUploadedFileService uploadedFileService,
     ISettingsService settingsService, IRoleService roleService, IPostRepository postRepository, ITopicRepository topicRepository,
     ILocalizationService localizationService)
 {
     _voteService = voteService;
     _favouriteService = favouriteService;
     _uploadedFileService = uploadedFileService;
     _postRepository = postRepository;
     _topicRepository = topicRepository;
     _roleService = roleService;
     _membershipUserPointsService = membershipUserPointsService;
     _settingsService = settingsService;
     _localizationService = localizationService;
 }
Example #47
0
		public TopicService(IForumRepository forumRepository, ITopicRepository topicRepository, IPostRepository postRepository, IProfileRepository profileRepository, ITextParsingService textParsingService, ISettingsManager settingsManager, ISubscribedTopicsService subscribedTopicsService, IModerationLogService moderationLogService, IForumService forumService, IEventPublisher eventPublisher, IBroker broker, ISearchRepository searchRepository, IUserRepository userRepository)
		{
			_forumRepository = forumRepository;
			_topicRepository = topicRepository;
			_postRepository = postRepository;
			_profileRepository = profileRepository;
			_settingsManager = settingsManager;
			_textParsingService = textParsingService;
			_subscribedTopicService = subscribedTopicsService;
			_moderationLogService = moderationLogService;
			_forumService = forumService;
			_eventPublisher = eventPublisher;
			_broker = broker;
			_searchRepository = searchRepository;
			_userRepository = userRepository;
		}
        internal XDAmazonListener(IIdentityProvider identityProvider, ISerializer serializer,
                                  ITopicRepository topicRepository,
                                  ISubscriberRepository subscriberRepository, ISubscriptionService subscriptionService)
        {
            Validate.That(identityProvider).IsNotNull();
            Validate.That(serializer).IsNotNull();
            Validate.That(topicRepository).IsNotNull();
            Validate.That(subscriberRepository).IsNotNull();
            Validate.That(subscriptionService).IsNotNull();

            useLongLiveQueues = (identityProvider.Scope == IdentityScope.Machine);
            uniqueInstanceId = identityProvider.GetUniqueId();
            this.serializer = serializer;
            this.topicRepository = topicRepository;
            this.subscriberRepository = subscriberRepository;
            this.subscriptionService = subscriptionService;
        }
        internal XDAmazonListener(IIdentityProvider identityProvider, ISerializer serializer,
            ITopicRepository topicRepository,
            ISubscriberRepository subscriberRepository, ISubscriptionService subscriptionService)
        {
            identityProvider.Requires("identityProvider").IsNotNull();
            serializer.Requires("serializer").IsNotNull();
            topicRepository.Requires("topicRepository").IsNotNull();
            subscriberRepository.Requires("subscriberRepository").IsNotNull();
            subscriptionService.Requires("subscriptionService").IsNotNull();

            useLongLiveQueues = identityProvider.Scope == IdentityScope.Machine;
            uniqueInstanceId = identityProvider.GetUniqueId();
            this.serializer = serializer;
            this.topicRepository = topicRepository;
            this.subscriberRepository = subscriberRepository;
            this.subscriptionService = subscriptionService;
        }
Example #50
0
		public PostService(IUserProvider userProvider,
							IForumRepository forumRepo,
							ITopicRepository topicRepo,
							IPostRepository postRepo,
							IEventPublisher eventPublisher,
							ILogger logger,
							IPermissionService permService,
							IForumConfigurationService confService) {

			this.userProvider = userProvider;
			this.postRepo = postRepo;
			this.topicRepo = topicRepo;
			this.forumRepo = forumRepo;
			this.logger = logger;
			this.eventPublisher = eventPublisher;
			this.permService = permService;
			this.confService = confService;
		}
Example #51
0
		public ForumService(IUserProvider userProvider,
							ICategoryRepository categoryRepo,
							IForumRepository forumRepo,
							ITopicRepository topicRepo,
							IPostRepository postRepo,
							IEventPublisher eventPublisher,
							ILogger logger,
							IPermissionService permService) {

			this.userProvider = userProvider;
			this.categoryRepo = categoryRepo;
			this.forumRepo = forumRepo;
			this.logger = logger;
			this.eventPublisher = eventPublisher;
			this.permService = permService;
			this.topicRepo = topicRepo;
			this.postRepo = postRepo;
		}
        public ResourceAllocationController(IStatusReportRepository repository, ITopicRepository topicRepository, IProjectRepository projectRepository, IResourceRepository resourceRepository, IStatusReportManager statusReportManager, ITeamRepository teamRepository, ITagRepository tagRepository, IResourceAllocationRepository resourceAllocationRepository)
        {
            _repository = repository;
            _topicRepository = topicRepository;
            _projectRepository = projectRepository;
            _resourceRepository = resourceRepository;
            _tagRepository = tagRepository;
            _teamRepository = teamRepository;
            _statusReportManager = statusReportManager;
            _resourceAllocationRepository = resourceAllocationRepository;

            Mapper.CreateMap<Project, StatusMvc.Models.ResourceAllocationViewModel.TeamAllocationRAVM.ProjectRAVM>();

            Mapper.CreateMap<Team, StatusMvc.Models.ResourceAllocationViewModel.TeamAllocationRAVM>()
                .ForMember(t => t.Members, opt => opt.Ignore());

            Mapper.CreateMap<ResourceAllocation, ResourceAllocationViewModel.TeamAllocationRAVM.MonthRAVM>();

            Mapper.CreateMap<Employee, StatusMvc.Models.ResourceAllocationViewModel.TeamAllocationRAVM.UserRAVM>();
        }
Example #53
0
 public ForumService(ITopicRepository topicRepository, IUnitOfWork unitOfWork)
 {
     _topicRepository = topicRepository;
     _unitOfWork = unitOfWork;
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="tagRepository"></param>
 public TopicTagService(ITopicTagRepository tagRepository, ITopicRepository topicRepository)
 {
     _tagRepository = tagRepository;
     _topicRepository = topicRepository;
 }
 /// <summary>
 /// 构造函数
 /// </summary>
 ///<param name="TopicMemberApplyRepository">专题成员申请仓储</param>
 ///<param name="TopicMemberRepository">专题成员仓储</param>
 ///<param name="groupRepository">专题仓储</param>
 /// <param name="TopicRepository"></param>
 public TopicService(ITopicRepository groupRepository, ITopicMemberRepository TopicMemberRepository, ITopicMemberApplyRepository TopicMemberApplyRepository)
 {
     this.topicRepository = groupRepository;
     this.TopicMemberRepository = TopicMemberRepository;
     this.TopicMemberApplyRepository = TopicMemberApplyRepository;
 }
 public SkillsController()
 {
     _contactInfoRespository = new ContactInfoRepository();
     _topicRepository = new TopicRepository();
 }
 public TopicController(IThemeRepository themeRepository, ITopicRepository topicRepository, ILogger<TopicController> logger)
 {
     _themeRepository = themeRepository;
     _topicRepositoryrepository = topicRepository;
     _logger = logger;
 }
 /// <summary>
 /// 构造器
 /// </summary>
 public DefaultTopicIdToTopicKeyDictionary(ITopicRepository groupRepository)
 {
     this.groupRepository = groupRepository;
 }
Example #59
0
 public TopicService(ITopicRepository repo)
 {
     Checks.Argument.IsNotNull(repo, "repo");
     _repo = repo;
 }
Example #60
0
 public TopicService(ITopicRepository topicRepository, IUnitOfWork uow, IPostService postService)
 {
     _topicRepository = topicRepository;
     _uow = uow;
     _postService = postService;
 }