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); }
public static void AddRandomReservationFurnitures(this ApplicationContext context, int count) { while (count != 0) { ReservationFurniture resfur = new ReservationFurniture(); context.ReservationFurnitures.Add(resfur.CreateReservationFurniture()); count--; } }