示例#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>();
 }