public void TestSetUp() { BloodDonorInitalizeDb db = new BloodDonorInitalizeDb(); Database.SetInitializer(db); BloodDonorContext con = new BloodDonorContext(); con.Database.Initialize(true); con.Database.CreateIfNotExists(); repo = new BloodDonorRepository(); }
static void Main(string[] args) { BloodDonorInitalizeDb db = new BloodDonorInitalizeDb(); Database.SetInitializer(db); BloodDonorContext con = new BloodDonorContext(); con.Database.Initialize(true); con.Database.CreateIfNotExists(); repo = new BloodDonorRepository(); var a = repo.GetBloodDonors(); }