public static void InitializeDbForTests(UsersDemoContext db) { db.Users.AddRange(AddUsers()); db.University.AddRange(AddUniversities()); db.SaveChanges(); }
public static void ReinitializeDbForTests(UsersDemoContext db) { db.Users.RemoveRange(db.Users); db.University.RemoveRange(db.University); InitializeDbForTests(db); }