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