public void ClassInitialize() { _connection = new SqliteConnection("DataSource=:memory:"); _connection.Open(); _options = new DbContextOptionsBuilder <OefeningContext>() .UseSqlite(_connection).Options; using var context = new OefeningContext(_options); context.Database.EnsureCreated(); _oefeningContext = new OefeningContext(_options); }
public OefeningRepository(OefeningContext oefeningContext) { _oefeningContext = oefeningContext; }