Esempio n. 1
0
 private static ReservationFurniture CreateReservationFurniture(this ReservationFurniture resfur)
 {
     resfur.FurnitureId   = rand.Next(0, 50);
     resfur.ReservationId = rand.Next(0, 50);
     resfur.Count         = rand.Next(1, 10);
     return(resfur);
 }
Esempio n. 2
0
 public static void AddRandomReservationFurnitures(this ApplicationContext context, int count)
 {
     while (count != 0)
     {
         ReservationFurniture resfur = new ReservationFurniture();
         context.ReservationFurnitures.Add(resfur.CreateReservationFurniture());
         count--;
     }
 }