Пример #1
0
 protected CarRental FirstOrDefaultCarRental(string bookingNumber, CarRentalContext db)
 {
     //Isolating Query for testing, annoying to mock otherwise
     return(db.Query <CarRental>().FirstOrDefault(x => x.BookingNumber == bookingNumber));
 }