public UnitTest1() { var builder = new DbContextOptionsBuilder <FilmRatingsDBContext>().UseSqlServer("Server = localhost\\SQLEXPRESS; Database = FilmRatingsDB; Trusted_Connection = True; "); _context = new FilmRatingsDBContext(builder.Options); _controller = new ComptesController(_context); }
public ComptesController(FilmRatingsDBContext context) { _context = context; }