Exemple #1
0
        public RemoteFieldRule RegisterRule(Accessor accessor, IFieldValidationRule rule)
        {
            var remote = RemoteFieldRule.For(accessor, rule);

            _rules[accessor].Fill(remote);

            return(remote);
        }
Exemple #2
0
 public bool Equals(RemoteFieldRule other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(_rule.Equals(other._rule) && Equals(other._accessor, _accessor));
 }