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