コード例 #1
0
 public void Setup()
 {
     Database.SetInitializer(new DropCreateDatabaseAlways<AutorContext>());
     _contextForTest = new AutorContext();
     _contextForTest.Autores.Add(ObjectMother.GetAutor());
     _contextForTest.SaveChanges();
 }
コード例 #2
0
 public AutorRepository()
 {
     context = new AutorContext();
 }