コード例 #1
0
        public UnitTest1()
        {
            var options = new DbContextOptionsBuilder <HighscoreDataContext>().UseSqlite("Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), 'mydb.db'").Options;

            _context    = new HighscoreDataContext(options);
            _controller = new HighscoreController(_context);
        }
 public HighscoresController(HighscoreDataContext context)
 {
     _context = context;
 }