コード例 #1
0
 private void SeedFood(IBusinessService businessService)
 {
     var chicken = new Food
     {
         Name = "Chicken1",
         Calories = 120,
         ServingSize = 4
     };
     var eggs = new Food
     {
         Name = "Eggs1",
         Calories = 70,
         ServingSize = 1
     };
     var apple = new Food
     {
         Name = "Apple1",
         Calories = 40,
         ServingSize = 1
     };
     var almonds = new Food
     {
         Name = "Almonds1",
         Calories = 100,
         ServingSize = 1
     };
     businessService.AddFood(chicken, eggs, apple, almonds);
 }