Пример #1
0
 public GetAllUsersHandler(IUserService userService,
                           IMapper mapper, ITokenAuthenticationService authService)
 {
     _userService = userService;
     _mapper      = mapper;
     _authService = authService;
 }
Пример #2
0
 public GetAllTeamsHandler(ITeamService teamService, ITokenAuthenticationService authService,
                           IMapper mapper)
 {
     _teamService = teamService;
     _authService = authService;
     _mapper      = mapper;
 }
Пример #3
0
 public GetAllDbLogsHandler(IDbLogService dbLogService, ITokenAuthenticationService authService,
                            IMapper mapper)
 {
     _dbLogService = dbLogService;
     _authService  = authService;
     _mapper       = mapper;
 }
Пример #4
0
 public RegisterCommandHandler(IUserService userService, ITokenAuthenticationService authService,
                               IMapper mapper)
 {
     _service     = userService;
     _authService = authService;
     _mapper      = mapper;
 }
Пример #5
0
 public UpdateTeamNameHandler(ITeamService teamService, ITokenAuthenticationService authService,
                              IMapper mapper)
 {
     _teamService = teamService;
     _authService = authService;
     _mapper      = mapper;
 }
Пример #6
0
 public GetSingleTaskForTeamHandler(ITasksService taskService, ITokenAuthenticationService authService,
                                    IMapper mapper)
 {
     _taskService = taskService;
     _authService = authService;
     _mapper      = mapper;
 }
Пример #7
0
 public UpdateUserInfoHandler(IUserService userService, ITokenAuthenticationService authService,
                              IMapper mapper)
 {
     _userService = userService;
     _authService = authService;
     _mapper      = mapper;
 }
Пример #8
0
 public AssignUserToTaskHandler(ITasksService taskService, ITokenAuthenticationService authService,
                                IMapper mapper)
 {
     _taskService = taskService;
     _authService = authService;
     _mapper      = mapper;
 }
Пример #9
0
 public TeamForCreationHandler(ITeamService teamService, ITokenAuthenticationService authService,
                               IMapper mapper)
 {
     _teamService = teamService;
     _authService = authService;
     _mapper      = mapper;
 }
Пример #10
0
 public GetCommentHandler(ICommentService commentService, ITokenAuthenticationService authService,
                          IMapper mapper)
 {
     _commentService = commentService;
     _authService    = authService;
     _mapper         = mapper;
 }
Пример #11
0
 public RemoveUserFromTaskHandler(ITasksService taskService, ITokenAuthenticationService authService,
                                  IEmailService emailService)
 {
     _taskService  = taskService;
     _authService  = authService;
     _emailService = emailService;
 }
Пример #12
0
 public LoginUserCommandHandler(ITokenAuthenticationService authService,
                                IUserService userService, IMapper mapper)
 {
     _authService = authService;
     _userService = userService;
     _mapper      = mapper;
 }
Пример #13
0
 public AuthenticateHandler(
     ITokenAuthenticationService tokenAuthenticationService,
     IConnectedClientContext connectedClientContext)
 {
     _tokenAuthenticationService = tokenAuthenticationService;
     _connectedClientContext     = connectedClientContext;
 }
Пример #14
0
 public GetUserDataHandler(IUserService userService, ITokenAuthenticationService authService,
                           IMapper mapper)
 {
     _userService = userService;
     _authService = authService;
     _mapper      = mapper;
 }
Пример #15
0
 public RemoveUserFromTeamHandler(IUserService userService, ITeamService teamService,
                                  ITokenAuthenticationService authService)
 {
     _userService = userService;
     _teamService = teamService;
     _authService = authService;
 }
Пример #16
0
 public DenyTaskCompletionHandler(ITasksService taskService, ITokenAuthenticationService authService,
                                  IMapper mapper, IEmailService emailService)
 {
     _taskService  = taskService;
     _authService  = authService;
     _mapper       = mapper;
     _emailService = emailService;
 }
Пример #17
0
 public GetAllLogsForTaskHandler(ILogService logService, ITasksService tasksService,
                                 ITokenAuthenticationService authService, IMapper mapper)
 {
     _logService   = logService;
     _tasksService = tasksService;
     _authService  = authService;
     _mapper       = mapper;
 }
Пример #18
0
 public AssignUserToTeamHandler(ITeamService teamService, IUserService userService,
                                ITokenAuthenticationService authService, IMapper mapper)
 {
     _teamService = teamService;
     _userService = userService;
     _authService = authService;
     _mapper      = mapper;
 }
Пример #19
0
 public UpdateCommentHandler(ICommentService commentService, ITasksService taskService,
                             ITokenAuthenticationService authService, IMapper mapper)
 {
     _commentService = commentService;
     _taskService    = taskService;
     _authService    = authService;
     _mapper         = mapper;
 }
Пример #20
0
 public UsersController(ITokenAuthenticationService authService,
                        UserManager <ApplicationUser> userManager,
                        ILogger <UsersController> logger)
 {
     _authService = authService;
     _userManager = userManager;
     _logger      = logger;
 }
Пример #21
0
 public ReopenTaskHandler(ITasksService taskService, ITokenAuthenticationService authService,
                          IMapper mapper, IEmailService emailService)
 {
     _taskService  = taskService;
     _authService  = authService;
     _mapper       = mapper;
     _emailService = emailService;
 }
Пример #22
0
 public CreateNewTaskHandler(ITasksService tasksService, IUserService userService,
                             ITokenAuthenticationService authService, IMapper mapper, IEmailService emailService)
 {
     _tasksService = tasksService;
     _userService  = userService;
     _authService  = authService;
     _mapper       = mapper;
     _emailService = emailService;
 }
Пример #23
0
 public AuthenticateConnectionInitializer(
     IConnectionInitializer connectionInitializer,
     ITokenAuthenticationService tokenAuthenticationService,
     IConnectedClientContext connectedClientContext)
 {
     _connectionInitializer      = connectionInitializer;
     _tokenAuthenticationService = tokenAuthenticationService;
     _connectedClientContext     = connectedClientContext;
 }
Пример #24
0
 public AddLogToATaskHandler(ILogService logService, ITasksService taskService,
                             ITeamService teamService, ITokenAuthenticationService authService, IMapper mapper,
                             IEmailService emailService)
 {
     _logService   = logService;
     _taskService  = taskService;
     _teamService  = teamService;
     _authService  = authService;
     _mapper       = mapper;
     _emailService = emailService;
 }
Пример #25
0
 public AccountController(ITokenAuthenticationService authService,
                          ILogger <AccountController> logger)
 {
     _authService = authService;
     _logger      = logger;
 }
Пример #26
0
 public UserForLoginValidator(ITokenAuthenticationService service)
 {
     RuleFor(x => new { x.Email, x.Password })
     .Must(m => service.UserPasswordCheck(m.Email, m.Password)).WithErrorCode("404")
     .WithMessage("Invalid email or password, please try again.");
 }
Пример #27
0
 public DeleteCommentHandler(ICommentService commentService, ITokenAuthenticationService authService)
 {
     _commentService = commentService;
     _authService    = authService;
 }
Пример #28
0
 public AuthenticationController(ITokenAuthenticationService tokenAuthService)
 {
     _tokenAuthService = tokenAuthService;
 }
Пример #29
0
 public GetDbLogCommandTest()
 {
     _dbLogService = Substitute.For <IDbLogService>();
     _authService  = Substitute.For <ITokenAuthenticationService>();
     _mapper       = Substitute.For <IMapper>();
 }