main
 1using System;
 2
 3namespace jive
 4{
 5  public class PredicateSpecification<T> : Specification<T>
 6  {
 7    readonly Predicate<T> criteria;
 8
 9    public PredicateSpecification(Predicate<T> criteria)
10    {
11      this.criteria = criteria;
12    }
13
14    public bool is_satisfied_by(T item)
15    {
16      return criteria(item);
17    }
18  }
19}