public BowlingSystemIntegrationTests()
        {
            var optionsBuilder = new DbContextOptionsBuilder <BengansBowlingHallDbContext>();

            optionsBuilder.UseInMemoryDatabase(Guid.NewGuid().ToString());
            _context    = new BengansBowlingHallDbContext(optionsBuilder.Options);
            _repository = new SqlRepository(_context);
            _system     = new BengansSystem(_repository);
            Seed();
        }
Esempio n. 2
0
 public SqlRepository(BengansBowlingHallDbContext context)
 {
     _context = context;
 }