public TestBase() { _connection = new SqliteConnection("Filename=:memory:"); _connection.Open(); _db = new GatheringDbContext( new DbContextOptionsBuilder <GatheringDbContext>() .UseSqlite(_connection) .Options); _db.Database.EnsureCreated(); }
public DbEventRepo(GatheringDbContext context) { _context = context; }
public DbUserRepo(UserManager <User> userManager, JWTToken tokenService, GatheringDbContext context) { this.userManager = userManager; this.tokenService = tokenService; _context = context; }
public DbGroupRepo(GatheringDbContext context, IConfiguration configuration, IGroupUser groupUserRepo) { _context = context; Configuration = configuration; guRepo = groupUserRepo; }
public DbGroupUserRepo(GatheringDbContext context) { _context = context; }