public bool AreFieldsEqual(BookingPax original, BookingSource.Pax updated) { // Coalesce nulls and trim whitespace when comparing string originalValue = OriginalField(original)?.Trim() ?? String.Empty; string updatedValue = UpdatedField(updated)?.Trim() ?? String.Empty; return(String.Equals(originalValue, updatedValue, StringComparison.InvariantCultureIgnoreCase)); }
static BookingSource.Pax[] GetMultiplePaxForTest(int count) { var result = new BookingSource.Pax[count]; for (int i = 0; i < count; i++) { result[i] = GetPaxForTest(); } return(result); }