public bool MatchesThis(CarForSale car) { return(_categoryMakeCombos.Any(combo => combo.IgnoreThisComboMatch || (car.CategoryId == combo.Id && combo.Name == String.Empty) || (car.CategoryId == combo.Id && combo.Name.Equals(car.Make, StringComparison.InvariantCultureIgnoreCase)))); }
public bool MatchesThis(CarForSale car) { return(!_cylinders.Any() || _cylinders.Contains(car.Cylinders)); }
public bool MatchesThis(CarForSale car) { return(_cityMpg.IsNullOrEmpty() || _cityMpg == car.CityMpg); }
public bool MatchesThis(CarForSale car) { // Because the vehicle's Mileage is a continuous value type, we are going to check between a range. return(!_mileages.Any() || _mileages.Contains(car.Mileage) || (car.Mileage >= _mileages.First() && car.Mileage <= _mileages.Last())); }
public bool MatchesThis(CarForSale car) { return(!_driveTypes.Any() || _driveTypes.Contains(car.DriveType)); }
public bool MatchesThis(CarForSale car) { // Because the vehicle's Year is a discrete value type, we are going to check for a specific match before we check between a range. return(!_years.Any() || _years.Contains(car.Year) || (car.Year >= _years.First() && car.Year <= _years.Last())); }
public bool MatchesThis(CarForSale car) { return(!_newStatus.HasValue || _newStatus.Value == car.IsNewStatus); }
public bool MatchesThis(CarForSale car) { return(!_fuelTypeIds.Any() || _fuelTypeIds.Contains(car.FuelTypeId)); }
public bool MatchesThis(CarForSale car) { return(!_trannyTypes.Any() || _trannyTypes.Contains(car.TransmissionType)); }
public bool MatchesThis(CarForSale car) { return((_optionBits & car.OptionBits) == _optionBits); }
public bool MatchesThis(CarForSale car) { // Because the vehicle's AskingPrice is a continuous value type, we are going to check between a range. return(!_prices.Any() || (car.AskingPrice >= _prices.First() && car.AskingPrice <= _prices.Last())); }
bool IExclusion.MatchesThis(CarForSale car) { return(!_dealers.Contains(car.DealerId)); }
public bool MatchesThis(CarForSale car) { return(!_trimIds.Any() || _trimIds.Contains(car.TrimId)); }