Esempio n. 1
0
 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
 }
Esempio n. 2
0
 public RuleRepository(LighthouseContext db)
 {
     _db = db;
 }
Esempio n. 3
0
 public VariantRepository(LighthouseContext db)
 {
     _db = db;
 }
 public AnnotationController()
 {
     var db = new LighthouseContext();
     _variants = new VariantRepository(db);
 }