public ValidationByTypeExpression AddCall(ValidationCall call)
 {
     _policies.AddAction(graph => graph
                                      .FindChain(_modelType)
                                      .AddCall(call));
     return this;
 }
Exemple #2
0
 public bool Equals(ValidationCall other)
 {
     if (ReferenceEquals(null, other)) return false;
     if (ReferenceEquals(this, other)) return true;
     return Equals(other.RuleType, RuleType) && Equals(other._accessor, _accessor);
 }