public void Setup() { var options = new DbContextOptionsBuilder <JWTContext>() .UseInMemoryDatabase("InMemoryDB") .Options; _context = new JWTContext(options); _userRepostiory = new UserRepository(_context); }
public AccountService(JWTContext context) { _context = context; }
public AuthService(JWTContext context, IConfiguration configuration) { _context = context; Configuration = configuration; }
public UserRepository(JWTContext context) { _context = context; }