public void CheckForExistingBooking() { var booking = new Booking() { Name = "James Blackburn", Email = "*****@*****.**", Address = "108 Cranbourne Park", SeatId = "A1", MeetingWeek = "1" }; var result = _bookingRepository.CheckIfBookingAvailable(booking); Assert.IsNotNull(result); }
public bool CheckBookingExists(Booking booking) { var result = _bookingRepository.CheckIfBookingAvailable(booking); if (result == null) { return(false); } else { return(true); } }