public static CollectionValidator <short> MinGreaterThan(this CollectionValidator <short> collectionValidator, short value, string errorMessage = null)
 {
     return(collectionValidator.MinGreaterThan((x) => (double)x, (short)value, errorMessage));
 }
 public static CollectionValidator <short> AggregateEqualTo(this CollectionValidator <short> collectionValidator, Func <IEnumerable <short>, short> aggregator, short value, string errorMessage = null)
 {
     return(collectionValidator.AggregateEqualTo((x) => (double)x, (collection) => (double)aggregator(collection.Select(x => (short)x)), (double)value, errorMessage));
 }
예제 #3
0
 public static CollectionValidator <char> MinGreaterThan(this CollectionValidator <char> collectionValidator, char value, string errorMessage = null)
 {
     return(collectionValidator.MinGreaterThan((x) => (double)x, (char)value, errorMessage));
 }
예제 #4
0
 public static CollectionValidator <char> MaxLessThanOrEqualTo(this CollectionValidator <char> collectionValidator, char value, string errorMessage = null)
 {
     return(collectionValidator.MaxLessThanOrEqualTo((x) => (double)x, (char)value, errorMessage));
 }
 public static CollectionValidator <byte> SumLessThan(this CollectionValidator <byte> collectionValidator, byte value, string errorMessage = null)
 {
     return(collectionValidator.SumLessThan((x) => (double)x, (byte)value, errorMessage));
 }
예제 #6
0
 public static CollectionValidator <char> AggregateLessThan(this CollectionValidator <char> collectionValidator, Func <IEnumerable <char>, char> aggregator, char value, string errorMessage = null)
 {
     return(collectionValidator.AggregateLessThan((x) => (double)x, (collection) => (double)aggregator(collection.Select(x => (char)x)), (char)value, errorMessage));
 }
 public static CollectionValidator <double> MinLessThanOrEqualTo(this CollectionValidator <double> collectionValidator, double value, string errorMessage = null)
 {
     return(collectionValidator.MinLessThanOrEqualTo((x) => (double)x, (double)value, errorMessage));
 }
예제 #8
0
 public static CollectionValidator <float> SumLessThan(this CollectionValidator <float> collectionValidator, float value, string errorMessage = null)
 {
     return(collectionValidator.SumLessThan((x) => (double)x, (float)value, errorMessage));
 }
예제 #9
0
 public static CollectionValidator <long> MaxGreaterThanOrEqualTo(this CollectionValidator <long> collectionValidator, long value, string errorMessage = null)
 {
     return(collectionValidator.MaxGreaterThanOrEqualTo((x) => (double)x, (long)value, errorMessage));
 }
 public static CollectionValidator <double> AggregateLessThan(this CollectionValidator <double> collectionValidator, Func <IEnumerable <double>, double> aggregator, double value, string errorMessage = null)
 {
     return(collectionValidator.AggregateLessThan((x) => (double)x, aggregator, (double)value, errorMessage));
 }
예제 #11
0
 public static CollectionValidator <long> MinLessThan(this CollectionValidator <long> collectionValidator, long value, string errorMessage = null)
 {
     return(collectionValidator.MinLessThan((x) => (double)x, (long)value, errorMessage));
 }
예제 #12
0
 public static CollectionValidator <long> AggregateLessThan(this CollectionValidator <long> collectionValidator, Func <IEnumerable <long>, long> aggregator, long value, string errorMessage = null)
 {
     return(collectionValidator.AggregateLessThan((x) => (double)x, (collection) => (double)aggregator(collection.Select(x => (long)x)), (long)value, errorMessage));
 }
 public static CollectionValidator <byte> MaxEqualTo(this CollectionValidator <byte> collectionValidator, byte value, string errorMessage = null)
 {
     return(collectionValidator.MaxEqualTo((x) => (double)x, (byte)value, errorMessage));
 }
 public static CollectionValidator <short> MaxLessThanOrEqualTo(this CollectionValidator <short> collectionValidator, short value, string errorMessage = null)
 {
     return(collectionValidator.MaxLessThanOrEqualTo((x) => (double)x, (short)value, errorMessage));
 }
 public static CollectionValidator <double> MaxGreaterThan(this CollectionValidator <double> collectionValidator, double value, string errorMessage = null)
 {
     return(collectionValidator.MaxGreaterThan((x) => (double)x, (double)value, errorMessage));
 }
예제 #16
0
 public static CollectionValidator <float> AggregateLessThan(this CollectionValidator <float> collectionValidator, Func <IEnumerable <float>, float> aggregator, float value, string errorMessage = null)
 {
     return(collectionValidator.AggregateLessThan((x) => (double)x, (collection) => (double)aggregator(collection.Select(x => (float)x)), (float)value, errorMessage));
 }
예제 #17
0
 internal WrappedCollectionValidator(IEnumerable <T> collection)
 {
     this.collection = collection;
     this.validator  = new CollectionValidator <T>();
 }
예제 #18
0
 public static CollectionValidator <float> MinGreaterThanOrEqualTo(this CollectionValidator <float> collectionValidator, float value, string errorMessage = null)
 {
     return(collectionValidator.MinGreaterThanOrEqualTo((x) => (double)x, (float)value, errorMessage));
 }
 public static CollectionValidator <byte> AggregateLessThan(this CollectionValidator <byte> collectionValidator, Func <IEnumerable <byte>, byte> aggregator, byte value, string errorMessage = null)
 {
     return(collectionValidator.AggregateLessThan((x) => (double)x, (collection) => (double)aggregator(collection.Select(x => (byte)x)), (byte)value, errorMessage));
 }