Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public OefeningRepository(OefeningContext oefeningContext)
 {
     _oefeningContext = oefeningContext;
 }