Ejemplo n.º 1
0
 public PostService(ISettingsService settingsService, IRoleService roleService, IPostRepository postRepository, ITopicRepository topicRepository)
 {
     this._postRepository = postRepository;
     this._topicRepository = topicRepository;
     this._roleService = roleService;
     this._settingsService = settingsService;
 }
Ejemplo n.º 2
0
 public BOARDS(
     IBoardRepository boardRepository,
     ITopicRepository topicRepository)
 {
     _boardRepository = boardRepository;
     _topicRepository = topicRepository;
 }
Ejemplo n.º 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));
        }
Ejemplo n.º 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;
 }
Ejemplo n.º 6
0
 public UnitOfWork(MessageBoardContext context,ITopicRepository topics,ICompanyRepository companies,IImageRepository images)
 {
     _context = context;
     _topics = topics;
     _companies = companies;
     _images = images;
 }
Ejemplo n.º 7
0
 public STATS(
     IUserRepository userRepository,
     ITopicRepository topicRepository
 )
 {
     _userRepository = userRepository;
     _topicRepository = topicRepository;
 }
Ejemplo n.º 8
0
 public TopicService(IMembershipUserPointsService membershipUserPointsService,
     ISettingsService settingsService, ITopicRepository topicRepository, IPostRepository postRepository, ITopicNotificationService topicNotificationService)
 {
     _membershipUserPointsService = membershipUserPointsService;
     _settingsService = settingsService;
     _topicRepository = topicRepository;
     _postRepository = postRepository;
     _topicNotificationService = topicNotificationService;
 }
Ejemplo n.º 9
0
 public QuizManager(
     ITopicRepository topicRepository,
     IQuestionRepository questionRepository,
     IAnswerRepository answerRepository)
 {
     _topicRepository    = topicRepository;
     _questionRepository = questionRepository;
     _answerRepository   = answerRepository;
 }
Ejemplo n.º 10
0
 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 12
0
 public TOPIC(
     IReplyRepository replyRepository,
     ITopicRepository topicRepository,
     IBoardRepository boardRepository
 )
 {
     _replyRepository = replyRepository;
     _topicRepository = topicRepository;
     _boardRepository = boardRepository;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 15
0
    /*==========================================================================================================================
    | 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("/", ":"))!;

    }
Ejemplo n.º 16
0
 public TOPIC(
     IReplyRepository replyRepository,
     ITopicRepository topicRepository,
     IBoardRepository boardRepository
     )
 {
     _replyRepository = replyRepository;
     _topicRepository = topicRepository;
     _boardRepository = boardRepository;
 }
Ejemplo n.º 17
0
 public BOARD(
     IBoardRepository boardRepository,
     ITopicRepository topicRepository,
     IReplyRepository replyRepository
     )
 {
     _boardRepository = boardRepository;
     _topicRepository = topicRepository;
     _replyRepository = replyRepository;
 }
Ejemplo n.º 18
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 LayoutController(
   ITopicRoutingService topicRoutingService,
   IHierarchicalTopicMappingService<NavigationTopicViewModel> hierarchicalTopicMappingService,
   ITopicRepository topicRepository
 ) : base(
   topicRoutingService,
   hierarchicalTopicMappingService
 ) {
   _topicRepository = topicRepository;
 }
Ejemplo n.º 19
0
 public TopicServiceHandler(
     ITokenHelper tokenService, ITopicRepository topicRepository, IClientRepository clientRepository, ICommentRepository commentRepository,
     IMapper mapper)
 {
     _commentRepository = commentRepository;
     _tokenService      = tokenService;
     _topicRepository   = topicRepository;
     _clientRepository  = clientRepository;
     _mapper            = mapper;
 }
Ejemplo n.º 20
0
 public ProducerService(IConfiguration configuration,
                        ITopicRepository topicRepository)
 {
     _configuration         = configuration;
     _topicRepository       = topicRepository;
     _producerConfiguration = new ProducerConfig
     {
         BootstrapServers = _configuration["KafkaServer"]
     };
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 25
0
        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);
        }
Ejemplo n.º 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;
      }

    }
Ejemplo n.º 27
0
 public GetTopicDetailsOperation(
     IEmployeeCollectionTopicProgressStatusStrategy employeeCollectionTopicProgressStatusStrategy,
     IEmployeeTopicProgressStatusStrategy employeeTopicProgressStatusStrategy,
     IAuthorizationContext authorizationContext,
     ITopicRepository topicRepository)
 {
     _employeeCollectionTopicProgressStatusStrategy = employeeCollectionTopicProgressStatusStrategy;
     _employeeTopicProgressStatusStrategy           = employeeTopicProgressStatusStrategy;
     _authorizationContext = authorizationContext;
     _topicRepository      = topicRepository;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 29
0
 public TopicController(
     IMapper mapper,
     ILoggerManager logger,
     ITopicRepository topicRepository,
     IStudentTopicRepository studentTopicRepository)
 {
     _mapper                 = mapper;
     _logger                 = logger;
     _topicRepository        = topicRepository;
     _studentTopicRepository = studentTopicRepository;
 }
Ejemplo n.º 30
0
        // GET: /Home/
        public HomeController(IMailService mail, IUnitOfWork unitOfWork)
        {
            _mail = mail;

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

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

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

            _topicRepo = unitOfWork.Topics;
            _companyRepo = unitOfWork.Companies;
            _iUnitOfWork = unitOfWork;
        }
Ejemplo n.º 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;
 }
Ejemplo n.º 34
0
 public UserRepository(DbContext context,
                       ISectionModeratorsRepository sectionModeratorsRep,
                       IMessageRepository messageRep,
                       ITopicRepository topicRep,
                       IProfileReposiory profileRep)
 {
     ctx = context;
     sectionModeratorsRepository = sectionModeratorsRep;
     messageRepository           = messageRep;
     topicRepository             = topicRep;
     profileRepository           = profileRep;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
        }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
		}
Ejemplo n.º 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.");
        }
Ejemplo n.º 43
0
 public EntryService(
     IUnitOfWork unitOfWork,
     IEntryRepository entryRepository,
     ITopicRepository topicRepository,
     IEntryToTopicRepository entryToTopicRepository,
     IImageProcessingService imageProcessingService)
 {
     _unitOfWork             = unitOfWork;
     _entryRepository        = entryRepository;
     _topicRepository        = topicRepository;
     _entryToTopicRepository = entryToTopicRepository;
     _imageProcessingService = imageProcessingService;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
		}
Ejemplo n.º 48
0
        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;
        }
Ejemplo n.º 49
0
        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;
        }
Ejemplo n.º 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;
		}
Ejemplo n.º 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>();
        }
Ejemplo n.º 53
0
 public ForumService(ITopicRepository topicRepository, IUnitOfWork unitOfWork)
 {
     _topicRepository = topicRepository;
     _unitOfWork = unitOfWork;
 }
Ejemplo n.º 54
0
 /// <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();
 }
Ejemplo n.º 57
0
 public TopicController(IThemeRepository themeRepository, ITopicRepository topicRepository, ILogger<TopicController> logger)
 {
     _themeRepository = themeRepository;
     _topicRepositoryrepository = topicRepository;
     _logger = logger;
 }
 /// <summary>
 /// 构造器
 /// </summary>
 public DefaultTopicIdToTopicKeyDictionary(ITopicRepository groupRepository)
 {
     this.groupRepository = groupRepository;
 }
Ejemplo n.º 59
0
 public TopicService(ITopicRepository repo)
 {
     Checks.Argument.IsNotNull(repo, "repo");
     _repo = repo;
 }
Ejemplo n.º 60
0
 public TopicService(ITopicRepository topicRepository, IUnitOfWork uow, IPostService postService)
 {
     _topicRepository = topicRepository;
     _uow = uow;
     _postService = postService;
 }