public void Overdue(AgencyFactory factory, Random r) { photos = new List <Photo>(); reviews = new List <RevieW>(); trips = new List <TripPerDay>(); this.days = r.Next(1, 5); for (int i = 0; i < this.days; i++) { Trip trip1 = null; Trip trip2 = null; Trip trip3 = null; Booking booking = null; Photo photo = null; RevieW review = null; while (trip1 == null) { trip1 = factory.CreateTrip().Trip; } while (trip2 == null) { trip2 = factory.CreateTrip().Trip; } while (trip3 == null) { trip3 = factory.CreateTrip().Trip; } while (booking == null) { booking = factory.CreateBooking(); } trips.Add(new TripPerDay(trip1, trip2, trip3, booking)); while (review == null) { review = factory.CreateReview().Review; } reviews.Add(review); while (photo == null) { photo = factory.CreatePhoto().Photo; } photos.Add(photo); } }
public ReviewFR(RevieW revieW) { this.Review = revieW; }
public ReviewPL(RevieW revieW) { this.Review = revieW; }
public ReviewIT(RevieW revieW) { this.Review = revieW; }