public void RunBeforeAnyTests() { _testContext = new DifferContext(); // Clear table so each test has the same starting point. _testContext.Database.ExecuteSqlCommand("TRUNCATE TABLE [Differs]"); _testContext = new DifferContext(); }
public DiffRepository(DifferContext context) { Db = context; DbSet = Db.Set <Diff>(); }