예제 #1
0
 public ValidationByTypeExpression AddCall(ValidationCall call)
 {
     _policies.AddAction(graph => graph
                                      .FindChain(_modelType)
                                      .AddCall(call));
     return this;
 }
예제 #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);
 }