// These Tests must run on an empty database public APITest() { options = new DbContextOptionsBuilder <HighscoreDbContext>().UseSqlServer("Server=localhost;Database=Highscore;User Id=sa;Password=yourStrong(!)Password;").Options; dbContext = new HighscoreDbContext(options); dbContext.Database.Migrate(); highscoreManagement = new HighscoreManagement(dbContext); }
public HighscoreManagement(HighscoreDbContext context) { _context = context; }
public HighscoresController(HighscoreDbContext context, IHighscoreManagement highscoreManagement) { _context = context; _highscoreManagement = highscoreManagement; }