Example #1
0
 public RateStoryHandler(IStoryRatingRepository storyRatingRepository, IStoryRepository storyRepository,
                         IUserRepository userRepository, IMessageBroker messageBroker)
 {
     _storyRatingRepository = storyRatingRepository;
     _storyRepository       = storyRepository;
     _userRepository        = userRepository;
     _messageBroker         = messageBroker;
 }
Example #2
0
 public RateStoryHandler(IStoryRatingRepository storyRatingRepository, IStoryRepository storyRepository,
                         IUserRepository userRepository, IStoryRatingService storyRatingService,
                         IDomainEventDispatcher domainEventDispatcher, IEventMapper eventMapper, IMessageBroker messageBroker)
 {
     _storyRatingRepository = storyRatingRepository;
     _storyRepository       = storyRepository;
     _userRepository        = userRepository;
     _storyRatingService    = storyRatingService;
     _domainEventDispatcher = domainEventDispatcher;
     _eventMapper           = eventMapper;
     _messageBroker         = messageBroker;
 }
 public StoryRatingService(IStoryRatingRepository storyRatingRepository)
 {
     _storyRatingRepository = storyRatingRepository;
 }