/// <summary> /// Execution strategy setter /// </summary> /// <param name="strategy"></param> /// <returns></returns> public RuleEngine <TResult> UseStrategy(SpecificationExecutionStrategy strategy) { _strategy = strategy; return(this); }
/// <summary> /// Execution strategy setter /// </summary> /// <param name="strategy"></param> internal void Use(SpecificationExecutionStrategy strategy) { _strategy = strategy; }
/// <summary> /// CTOR /// </summary> public RuleEngine() { _specificationErrors = new List <SpecificationErrorInfo>(); _strategy = new StopAtFirstFailedStrategy(); }