How to reduce code duplication using predicates and lambda expressions

Many sites allow their clients to search for information and then browse through the results. Each result has multiple attributes such as title price status     In test automation projects, it is important to have the ability of filtering the results by different attributes. For example, filter the results with price greater than 0….