Ejemplo n.º 1
0
 public static ExpressValidationRuleBuilder <T> Null <T>(this ExpressValidationBuilder <T> builder)
 {
     return
         (builder
          .True(CreateEqualNullExpression <T>())
          .WithMessage($"{typeof(T).ToPrettyString()} must be null.")
          .BreakOnFailure());
 }
Ejemplo n.º 2
0
 public static ExpressValidationRuleBuilder <T> False <T>(this ExpressValidationBuilder <T> builder, Expression <Func <T, bool> > expression)
 {
     return(builder.True(Negate(expression)));
 }