public Result Run(Specification specification) { _listener.OnSpecificationStart(specification.GetInfo()); var result = specification.Verify(); _listener.OnSpecificationEnd(specification.GetInfo(), result); return result; }
public Result Run(Specification specification) { _listener.OnSpecificationStart(specification.GetInfo()); var result = specification.Verify(); result = _resultSupplementers.Aggregate(result, (r, supplement) => supplement.SupplementResult(r)); _listener.OnSpecificationEnd(specification.GetInfo(), result); return result; }