public void Setup()
 {
     //Inicializa o banco, apagando e recriando-o
     Database.SetInitializer(new DropCreateDatabaseAlways<CovenantContext>());
     //Seta um registro padrão pra ser usado nos testes
     _contextForTest = new CovenantContext();
     _contextForTest.Covenants.Add(ObjectMother.GetCovenant());
     _contextForTest.SaveChanges();
 }
Esempio n. 2
0
 public CovenantRepository()
 {
     context = new CovenantContext();
 }
Esempio n. 3
0
 public CovenantRepository()
 {
     context = new CovenantContext();
 }