public static M MustBeOfType <M, T, R>(this IMustPassRule <M, T, R> mpr, Type type) { return(mpr.MustPassRule(new OfTypeRule <R>(type))); }
public static M MustPassGenericRule <M, T, R>(this IMustPassRule <M, T, R> mpr, Func <R, bool> rule) { return(mpr.MustPassRule(new GenericRule <R>(rule))); }
public static M MustNotEqual <M, T, R>(this IMustPassRule <M, T, R> mpr, Expression <Func <T, R> > value, IEqualityComparer <R> comparer) { return(mpr.MustPassRule(new NotEqualRule <T, R>(mpr.Expression, value, comparer))); }
public static M MustMatchRegex <M, T>(this IMustPassRule <M, T, string> mpr, string pattern, RegexOptions options) { return(mpr.MustPassRule(new RegexRule(new Regex(pattern, options)))); }
public static M MustBeNull <M, T, R>(this IMustPassRule <M, T, R> mpr) where R : class { return(mpr.MustPassRule(new NullRule <R>())); }
public static M MustBeGreaterThan <M, T, R>(this IMustPassRule <M, T, R> mpr, Expression <Func <T, R> > greaterThan) where R : IComparable <R> { return(mpr.MustPassRule(new GreaterThanRule <T, R>(GetExpression(mpr), greaterThan, false))); }
public static M MustNotBeOneOf <M, T, R>(this IMustPassRule <M, T, R> mpr, IEqualityComparer <R> comparer, params R[] values) { return(mpr.MustPassRule(new NotOneOfRule <R>(values, comparer))); }
public static M MustBeGreaterThanOrEqualTo <M, T, R>(this IMustPassRule <M, T, R> mpr, R greaterThan) where R : IComparable <R> { return(mpr.MustPassRule(new GreaterThanRule <R>(greaterThan, true))); }
public static M MustNotBeOneOf <M, T, R>(this IMustPassRule <M, T, R> mpr, IEnumerable <R> values) { return(mpr.MustPassRule(new NotOneOfRule <R>(values))); }
public static M MustNotBeOneOf <M, T, R>(this IMustPassRule <M, T, R> mpr, params R[] values) { return(mpr.MustPassRule(new NotOneOfRule <R>(values))); }
public static M MustBeOneOf <M, T, R>(this IMustPassRule <M, T, R> mpr, IEnumerable <R> values, IEqualityComparer <R> comparer) { return(mpr.MustPassRule(new OneOfRule <R>(values, comparer))); }
public static M MustBeBetween <M, T, R>(this IMustPassRule <M, T, R> mpr, Expression <Func <T, R> > greaterThan, Expression <Func <T, R> > lessThan, BetweenRuleBoundsOption bounds) where R : IComparable <R> { return(mpr.MustPassRule(new BetweenRule <T, R>(mpr.Expression, greaterThan, lessThan, bounds))); }
public static M MustBeNull <M, T, R>(this IMustPassRule <M, T, Nullable <R> > mpr) where R : struct { return(mpr.MustPassRule(new NullableNullRule <R>())); }
public static M MustBeLessThan <M, T, R>(this IMustPassRule <M, T, R> mpr, Expression <Func <T, R> > lessThan) where R : IComparable <R> { return(mpr.MustPassRule(new LessThanRule <T, R>(mpr.Expression, lessThan, false))); }
public static M MustNotEqual <M, T, R>(this IMustPassRule <M, T, R> mpr, R value) { return(mpr.MustPassRule(new NotEqualRule <R>(value))); }
public static M MustBeLessThanOrEqualTo <M, T, R>(this IMustPassRule <M, T, R> mpr, R lessThan) where R : IComparable <R> { return(mpr.MustPassRule(new LessThanRule <R>(lessThan, true))); }
public static M MustNotEqual <M, T, R>(this IMustPassRule <M, T, R> mpr, R value, IEqualityComparer <R> comparer) { return(mpr.MustPassRule(new NotEqualRule <R>(value, comparer))); }
public static M MustBeGreaterThanOrEqualTo <M, T, R>(this IMustPassRule <M, T, R> mpr, Expression <Func <T, R> > greaterThan) where R : IComparable <R> { return(mpr.MustPassRule(new GreaterThanRule <T, R>(mpr.Expression, greaterThan, true))); }
public static M MustNotEqual <M, T, R>(this IMustPassRule <M, T, R> mpr, Expression <Func <T, R> > value) { return(mpr.MustPassRule(new NotEqualRule <T, R>(mpr.Expression, value))); }
public static M MustNotBeNullOrEmpty <M, T>(this IMustPassRule <M, T, string> mpr) { return(mpr.MustPassRule(new NotNullOrEmpty())); }
public static M MustBeLessThanOrEqualTo <M, T, R>(this IMustPassRule <M, T, R> mpr, Expression <Func <T, R> > lessThan) where R : IComparable <R> { return(mpr.MustPassRule(new LessThanRule <T, R>(GetExpression(mpr), lessThan, true))); }