Exemplo n.º 1
0
        internal void Handle(IValidationHandler handler, Action <IEnumerable <ValidationResult> > filterFunc = null)
        {
            handler.CheckNull(nameof(handler));
            var coll = filterFunc == null ? _collection : _collection.Filter(filterFunc);

            if (coll == null)
            {
                return;
            }

            handler.Handle(coll);
        }
Exemplo n.º 2
0
        internal void Handle(IValidationHandler handler, Action <IEnumerable <ValidationResult> > filterFunc = null)
        {
            if (handler == null)
            {
                throw new ArgumentNullException(nameof(handler));
            }
            var coll = filterFunc == null ? _collection : _collection.Filter(filterFunc);

            if (coll == null)
            {
                return;
            }

            handler.Handle(coll);
        }