Example #1
0
 public SpecificationResult IsSatisfiedBy(TTarget target)
 {
     return(SpecificationFunction.Invoke(target, _options));
 }
Example #2
0
 public Specification(SpecificationFunction <TTarget> specificationFunction)
 {
     SpecificationFunction = specificationFunction;
     _options = new InvocationOptions();
 }
Example #3
0
 protected Specification <TTarget> FromDelegate(SpecificationFunction <TTarget> specificationFunction)
 {
     SpecificationFunction = specificationFunction;
     return(this);
 }