public static void InitializeIngredientTestData(GoodFoodIncDBContext db) { db.Ingredients.Add(new Ingredient() { Title = "milk", Description = "Sød Milk" }); db.Ingredients.Add(new Ingredient() { Title = "egg", Description = "white egg" }); db.SaveChanges(); }
public static void InitializeUserAndCatagoryTestData(GoodFoodIncDBContext db) { db.Users.Add(new User() { UserName = "******", Password = "******" }); db.Catagories.Add(new Catagory() { Name = CatagoryTypes.starters.ToString() }); db.Catagories.Add(new Catagory() { Name = CatagoryTypes.maincourse.ToString() }); db.Catagories.Add(new Catagory() { Name = CatagoryTypes.dessert.ToString() }); db.SaveChanges(); }