public DbProvider() { var builder = new DbContextOptionsBuilder <AcademateDbContext>(); builder.UseInMemoryDatabase("AcademateDb"); builder.EnableSensitiveDataLogging(); var options = builder.Options; Context = new AcademateDbContext(options); }
public ExamRepository(IDbProvider dbProvider) { _dbContext = dbProvider.Context; }
public AuthenticationService(IOptions <AppSettings> appSettings, IDbProvider dbProvider) { _dbContext = dbProvider.Context; _appSettings = appSettings.Value; }
public ConfigurationRepository(IDbProvider dbProvider) { _dbContext = dbProvider.Context; }
public CourseRepository(IDbProvider dbProvider) { _dbContext = dbProvider.Context; }
public EnrollmentRepository(IDbProvider dbProvider) { _dbContext = dbProvider.Context; }