예제 #1
0
 /// <summary>
 ///     Create new instance.
 /// </summary>
 public ReactionService(INotificationService notificationService,
                        IBlobStorageService blobStorageService,
                        IEntityStorageUriService entityStorageUriService,
                        IReactionRepository reactionRepository,
                        IVlogRepository vlogRepository)
 {
     _notificationService     = notificationService ?? throw new ArgumentNullException(nameof(notificationService));
     _blobStorageService      = blobStorageService ?? throw new ArgumentNullException(nameof(blobStorageService));
     _entityStorageUriService = entityStorageUriService ?? throw new ArgumentNullException(nameof(entityStorageUriService));
     _reactionRepository      = reactionRepository ?? throw new ArgumentNullException(nameof(reactionRepository));
     _vlogRepository          = vlogRepository ?? throw new ArgumentNullException(nameof(vlogRepository));
 }
 public ReactionsController(
     IReactionRepository reactionRepository,
     IReactionTypeRepository reactionTypeRepository,
     IPostRepository postRepository,
     IUserRepository userRepository,
     IMapper mapper
     )
 {
     _reactionRepository     = reactionRepository;
     _reactionTypeRepository = reactionTypeRepository;
     _postRepository         = postRepository;
     _userRepository         = userRepository;
     _mapper = mapper;
 }
예제 #3
0
 public QuestionController(IQuestionsRepository questionsRepository,
                           IQuestionRecommendation questionRecommendation,
                           ITagsRepository tagsRepository,
                           ITagPostRepository tagPostRepository,
                           IUserConnectionManager userConnectionManager,
                           IReactionRepository reactionRepository,
                           IUsersRepository usersRepository,
                           ApplicationDbContext context)
 {
     this.questionsRepository    = questionsRepository;
     this.questionRecommendation = questionRecommendation;
     this.tagsRepository         = tagsRepository;
     this.tagPostRepository      = tagPostRepository;
     this.notificationRepository = new NotificationRepository(context, userConnectionManager);
     this.reactionRepository     = reactionRepository;
     this.usersRepository        = usersRepository;
 }
예제 #4
0
 public QuestionsRepository(IReactionRepository reactionRepository, ApplicationDbContext applicationDbContext)
 {
     this.applicationDbContext = applicationDbContext;
     this.reactionRepository   = reactionRepository;
 }
 public PostController(IPostRepository postRepository, ICategoryRepository categoryRepository, ISubscriptionRepository subscriptionRepository, IPostReactionRepository postReactionRepository, IReactionRepository reactionRepository, ITagRepository tagRepository)
 {
     _postRepository         = postRepository;
     _categoryRepository     = categoryRepository;
     _tagRepository          = tagRepository;
     _subscriptionRepository = subscriptionRepository;
     _postReactionRepository = postReactionRepository;
     _reactionRepository     = reactionRepository;
 }
예제 #6
0
 public MessagesLogic(IMessagesRepository messagesRepository, IReactionRepository reactionRepository)
 {
     this.messagesRepository = messagesRepository;
     this.reactionRepository = reactionRepository;
 }
예제 #7
0
 public AlchemyService(IMapper mapper, IAlchemySymbolRepository alchemySymbolRepository, IReactionRepository reactionRepository,
                       IPotionRepository potionRepository) : base(mapper)
 {
     _alchemySymbolRepository = alchemySymbolRepository;
     _reactionRepository      = reactionRepository;
     _potionRepository        = potionRepository;
 }
예제 #8
0
 public ReactionService(IReactionRepository reactionRepository)
 {
     this.reactionRepository = reactionRepository;
 }
예제 #9
0
 public ReactionsController(ITypeOfReactionRepository typeOfReactionRepository, IHttpContextAccessor contextAccessor, IMapper mapper, IReactionRepository reactionRepository, IProductMockRepository productMockRepository, Logger logger)
 {
     this.reactionRepository    = reactionRepository;
     this.productMockRepository = productMockRepository;
     this.mapper                   = mapper;
     this.logger                   = logger;
     this.contextAccessor          = contextAccessor;
     this.typeOfReactionRepository = typeOfReactionRepository;
 }
 public ReactionController(IPostReactionRepository postReactionRepository, IReactionRepository reactionRepository)
 {
     _postReactionRepository = postReactionRepository;
     _reactionRepository     = reactionRepository;
 }
예제 #11
0
 public ThreadsLogic(IThreadsRepository threadsRepository, IReactionRepository reactionRepository)
 {
     this.threadsRepository  = threadsRepository;
     this.reactionRepository = reactionRepository;
 }
예제 #12
0
 public ReactionService(IReactionRepository repository)
 {
     _repository = repository;
 }
예제 #13
0
 public ReactionController(IReactionRepository reactionRepository,
                           IProfileRepository profileRepository)
 {
     _reactionRepository = reactionRepository;
     _profileRepository  = profileRepository;
 }
예제 #14
0
 public ReactionController(IPostReactionRepository postReactionRepository, IReactionRepository reactionRepository, IUserProfileRepository userProfileRepository)
 {
     _reactionRepository     = reactionRepository;
     _postReactionRepository = postReactionRepository;
     _userProfileRepository  = userProfileRepository;
 }