public void AfterScenario()
        {
            _context.Dispose();
            _connection.Dispose();

            SpecFlowTestLock.Unlock();
        }
        public void BeforeScenario()
        {
            SpecFlowTestLock.Lock();

            _connection = new SqliteConnection("DataSource=:memory:");
            _connection.Open();

            var options = new DbContextOptionsBuilder <BestelContext>()
                          .UseSqlite(_connection)
                          .Options;

            _context = new BestelContext(options);
            _context.Database.EnsureCreated();

            SeedDatabase();
        }