public CourseControllerTest(SqliteInMemoryFixture fixture) { _fixture = fixture; _fixture.CreateDatabase(); _dbContext = _fixture.Context; _courseRepository = new BaseRepository <Course>(_dbContext); }
public QuestionControllerTest(SqliteInMemoryFixture fixture) { _fixture = fixture; _fixture.CreateDatabase(); _dbContext = _fixture.Context; _questionRepository = new BaseRepository <Question>(_dbContext); }
public AccountControllerTest(SqliteInMemoryFixture fixture) { _fixture = fixture; _fixture.CreateDatabase(); _dbContext = _fixture.Context; _accountRepository = new BaseRepository <Account>(_dbContext); _jwtAuthenticationManage = new JwtAuthenticationManage("this is my key to test authentication"); }
public BaseRepository(EnglishForStudentDB dbContext) { _dbContext = dbContext; }