public List <BookingModel> GenerateTestBookingData() { var cust = GenerateCustomerData(); var bookings = new BookingModel[4] { new BookingModel() { BookingId = 0, Customer = cust[0], TimeOfVisit = DateTime.Now.AddHours(1), EndTime = DateTime.Now.AddHours(2) }, new BookingModel() { BookingId = 1, Customer = cust[1], TimeOfVisit = DateTime.Now.AddHours(2), EndTime = DateTime.Now.AddHours(3) }, new BookingModel() { BookingId = 2, Customer = cust[2], TimeOfVisit = DateTime.Now.AddHours(3), EndTime = DateTime.Now.AddHours(4) }, new BookingModel() { BookingId = 3, Customer = cust[2], TimeOfVisit = DateTime.Now.AddHours(-3), EndTime = DateTime.Now.AddHours(-4) } }.AsQueryable(); return(bookings.ToList()); }