public void Init() { Database.Delete("LighthouseContext"); // Verify that database does not exist var initializer = new LighthouseInitializer(); // Create and initialize new database _db = new LighthouseContext(); initializer.InitializeDatabase(_db); Assert.IsNotNull(_db, "Database creation failed."); // Fail tests if database does not exist }
public RuleRepository(LighthouseContext db) { _db = db; }
public VariantRepository(LighthouseContext db) { _db = db; }
public AnnotationController() { var db = new LighthouseContext(); _variants = new VariantRepository(db); }