public BlacklistingJwtMiddleware(DataBaseELContext userContext, IConfiguration configuration) { _userContext = userContext; _configuration = configuration; _tokenName = "Authorization"; _gracePeriod = int.Parse(_configuration["gracePeriod"]); _applyGracePeriod = _configuration["applyGracePeriod"].Trim().ToLower(); }
public UserWebApiUnitTest() { DbContextOptions <DataBaseELContext> dbOptions; DbContextOptionsBuilder <DataBaseELContext> dboBuilder = new DbContextOptionsBuilder <DataBaseELContext>(); dboBuilder.UseInMemoryDatabase("WebapiTest"); dbOptions = dboBuilder.Options; _dataBaseELContext = new DataBaseELContext(dbOptions); _jwtService = new JwtService(); _userController = new UserController(_dataBaseELContext, _jwtService); }
public AuthController(DataBaseELContext dataBaseELContext, IJwtService jwtService) : base(dataBaseELContext, jwtService) { }
public BaseController(DataBaseELContext dataBaseELContext, IJwtService jwtService) { _dataBaseELContext = dataBaseELContext; _jwtService = jwtService; this.DefaultAdd(); }
public EagerLoadingController(DataBaseELContext dataBaseELContext, IJwtService jwtService) : base(dataBaseELContext, jwtService) { }