Exemplo n.º 1
0
        public void Setup()
        {
            var options = new DbContextOptionsBuilder <JWTContext>()
                          .UseInMemoryDatabase("InMemoryDB")
                          .Options;

            _context        = new JWTContext(options);
            _userRepostiory = new UserRepository(_context);
        }
Exemplo n.º 2
0
 public AccountService(JWTContext context)
 {
     _context = context;
 }
Exemplo n.º 3
0
 public AuthService(JWTContext context, IConfiguration configuration)
 {
     _context      = context;
     Configuration = configuration;
 }
Exemplo n.º 4
0
 public UserRepository(JWTContext context)
 {
     _context = context;
 }