/// <summary> /// This one is basically for testing purposes only as /// it is not connected to a database. Do not use it outside of testing. /// </summary> public TableManager(IFreeTableFinder ftf) { _freeTableFinder = ftf; _solutionFinder = new SolutionFinderVersion3(); _solutionChecker = new SolutionCheckerVersion1(); _solutionScorer = new SolutionScorerVersion1(); }
/// <summary> /// Use this one. /// </summary> /// <param name="context"></param> public TableManager(MyDBContext context) { _context = context; _freeTableFinder = new FreeTableFinder(_context); _solutionFinder = new SolutionFinderVersion3(); _solutionChecker = new SolutionCheckerVersion1(); _solutionScorer = new SolutionScorerVersion1(); }
/// <summary> /// This one is basically for testing purposes only as /// it is not connected to a database. Do not use it outside of testing. /// </summary> public TableManager() { _solutionFinder = new SolutionFinderVersion3(); _solutionChecker = new SolutionCheckerVersion1(); _solutionScorer = new SolutionScorerVersion1(); }