public void Setup() { _crudMethods = new CRUD_DeveloperMethods(); using (var db = new GameMarketContext()) { var selectedDevs = from c in db.Developers where c.DeveloperName == "Bioware" select c; var selectedDevs2 = from c in db.Developers where c.DeveloperName == "Bethesda Softworks" select c; var selectedDevs3 = from c in db.Developers where c.DeveloperName == "Treyarch" select c; db.Developers.RemoveRange(selectedDevs); db.Developers.RemoveRange(selectedDevs2); db.Developers.RemoveRange(selectedDevs3); db.SaveChanges(); } }