Exemplo n.º 1
0
 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();
 }
Exemplo n.º 2
0
 public DiffRepository(DifferContext context)
 {
     Db    = context;
     DbSet = Db.Set <Diff>();
 }