public LoginController(IQueryProcessor queryProcessor, ICommandProcessor commandProcessor, IJwtSecurityTokenHandlerAdapter jwtSecurityTokenHandlerAdapter) { Argument.ThrowIfNull(() => queryProcessor); Argument.ThrowIfNull(() => commandProcessor); Argument.ThrowIfNull(() => jwtSecurityTokenHandlerAdapter); this.queryProcessor = queryProcessor; this.commandProcessor = commandProcessor; this.jwtSecurityTokenHandlerAdapter = jwtSecurityTokenHandlerAdapter; }
private readonly IJwtSecurityToken _token; // Token que se extrae del Authorization header public JwtAuthenticationMessageHandlerTest(IJwtSecurityToken token, IJwtSecurityTokenHandlerAdapter handler) { _token = token; _handler = handler; }