public void Setup() { Database.SetInitializer(new DropCreateDatabaseAlways<AutorContext>()); _contextForTest = new AutorContext(); _contextForTest.Autores.Add(ObjectMother.GetAutor()); _contextForTest.SaveChanges(); }
public AutorRepository() { context = new AutorContext(); }