Exemplo n.º 1
0
 public GroupUserService(
     IAuthorizedUserHelper authorizedUserHelper,
     IGroupUserRepository groupUserRepository,
     IGroupUserStore groupUserStore,
     IGroupEventService groupEventService,
     IGroupRepository groupRepository,
     IChannelEventService channelEventService,
     IChannelUserRepository channelUserRepository,
     IChannelUserStore channelUserStore,
     IChatEventService chatEventService,
     IChatUserRepository chatUserRepository,
     IChatUserStore chatUserStore,
     IChatService chatService,
     IUserRepository userRepository,
     IMailService mailService,
     IMapper mapper
     )
 {
     _groupUserRepository   = groupUserRepository;
     _groupUserStore        = groupUserStore;
     _groupEventService     = groupEventService;
     _groupRepository       = groupRepository;
     _channelEventService   = channelEventService;
     _channelUserRepository = channelUserRepository;
     _channelUserStore      = channelUserStore;
     _chatUserRepository    = chatUserRepository;
     _chatUserStore         = chatUserStore;
     _chatEventService      = chatEventService;
     _chatService           = chatService;
     _userRepository        = userRepository;
     _mailService           = mailService;
     _mapper         = mapper;
     _authorizedUser = authorizedUserHelper.GetAuthorizedUser();
 }
Exemplo n.º 2
0
 public MessageSender(IAuthorizedUserHelper authorizedUserHelper, ISocketStream socketStream, IMessageStore messageStore, IMapper mapper)
 {
     _authorizedUserHelper = authorizedUserHelper;
     _socketStream         = socketStream;
     _messageStore         = messageStore;
     _mapper = mapper;
 }
        public AuthorizedUserHelperTest()
        {
            _httpContextAccessorMock = new Mock <IHttpContextAccessor>();
            _userRepositoryMock      = new Mock <IUserRepository>();

            _authorizedUserHelper = new AuthorizedUserHelper(
                _httpContextAccessorMock.Object,
                _userRepositoryMock.Object
                );
        }
 public UserValidationService(
     IAuthenticationService authenticationService,
     IAuthorizedUserHelper authorizedUserHelper,
     IUserRepository userRepository
     )
 {
     _authenticationService = authenticationService;
     _userRepository        = userRepository;
     _authorizedUserHelper  = authorizedUserHelper;
 }
Exemplo n.º 5
0
 public GroupValidationService(
     IAuthorizedUserHelper authorizedUserHelper,
     IGroupUserRepository groupUserRepository,
     IUserValidationService userValidationService
     )
 {
     _groupUserRepository   = groupUserRepository;
     _authorizedUser        = authorizedUserHelper.GetAuthorizedUser();
     _userValidationService = userValidationService;
 }
Exemplo n.º 6
0
 public EventSender(
     IAuthorizedUserHelper authorizedUserHelper,
     ISocketStream socketStream,
     IEventStore eventStore
     )
 {
     _authorizedUserHelper = authorizedUserHelper;
     _socketStream         = socketStream;
     _eventStore           = eventStore;
 }
Exemplo n.º 7
0
 public UserService(
     IAuthorizedUserHelper authorizedUserHelper,
     IUserRepository userRepository,
     IMailService mailService,
     IMapper mapper
     )
 {
     _userRepository = userRepository;
     _mailService    = mailService;
     _mapper         = mapper;
     _authorizedUser = authorizedUserHelper.GetAuthorizedUser();
 }
Exemplo n.º 8
0
 public MessageReceiver(
     IAuthorizedUserHelper authorizedUserHelper,
     IChannelMessageService channelMessageService,
     IChatMessageService chatMessageService,
     ISocketStream socketStream
     )
 {
     _authorizedUserHelper  = authorizedUserHelper;
     _channelMessageService = channelMessageService;
     _chatMessageService    = chatMessageService;
     _socketStream          = socketStream;
 }
 public ChatValidationService(
     IAuthorizedUserHelper authorizedUserHelper,
     IChatUserRepository chatUserRepository,
     IChatRepository chatRepository,
     IGroupValidationService groupValidationService,
     IUserValidationService userValidationService
     )
 {
     _chatUserRepository     = chatUserRepository;
     _groupValidationService = groupValidationService;
     _chatRepository         = chatRepository;
     _userValidationService  = userValidationService;
     _authorizedUser         = authorizedUserHelper.GetAuthorizedUser();
 }
Exemplo n.º 10
0
 public ChannelService(
     IAuthorizedUserHelper authorizedUserHelper,
     IGroupRepository groupRepository,
     IChannelUserRepository channelUserRepository,
     IChannelEventService channelEventService,
     IChannelUserStore channelUserStore,
     IChannelRepository channelRepository,
     IMapper mapper
     )
 {
     _groupRepository       = groupRepository;
     _channelUserRepository = channelUserRepository;
     _channelEventService   = channelEventService;
     _authorizedUser        = authorizedUserHelper.GetAuthorizedUser();
     _channelUserStore      = channelUserStore;
     _channelRepository     = channelRepository;
     _mapper = mapper;
 }
Exemplo n.º 11
0
 public GroupService(
     IAuthorizedUserHelper authorizedUserHelper,
     IGroupUserRepository groupUserRepository,
     IGroupUserStore groupUserStore,
     IGroupRepository groupRepository,
     IGroupEventService groupEventService,
     IMailService mailService,
     IMapper mapper
     )
 {
     _authorizedUserHelper = authorizedUserHelper;
     _groupUserRepository  = groupUserRepository;
     _groupUserStore       = groupUserStore;
     _groupRepository      = groupRepository;
     _groupEventService    = groupEventService;
     _mailService          = mailService;
     _mapper = mapper;
     _user   = authorizedUserHelper.GetAuthorizedUser();
 }
Exemplo n.º 12
0
 public EventService(IAuthorizedUserHelper authorizedUserHelper, IEventStore eventStore)
 {
     _authorizedUserHelper = authorizedUserHelper;
     _eventStore           = eventStore;
 }
 public void Dispose()
 {
     _httpContextAccessorMock = null;
     _authorizedUserHelper    = null;
 }