public void OrIsNull_calls_And_with_arguments()
        {
            IClauseCollection <TestClass> clauseCollection = A.Fake <IClauseCollection <TestClass> >();

            IClauseCollectionExtensions.OrIsNull(clauseCollection, x => x.Title);

            A.CallTo(() => clauseCollection.Or("Title", SqlOperator.Is, "null")).MustHaveHappened();
        }
Beispiel #2
0
        public static IClauseCollection <T> Or <T, TProp>(this IClauseCollection <T> clauseCollection, Expression <Func <T, TProp> > property, SqlOperator sqlOperator, TProp value, Func <TProp, bool> applyPredicate)
        {
            if (applyPredicate(value))
            {
                clauseCollection.Or(property, sqlOperator, value);
            }

            return(clauseCollection);
        }
Beispiel #3
0
 public static IClauseCollection <T> OrIsNull <T, TProp>(this IClauseCollection <T> clauseCollection, Expression <Func <T, TProp> > property)
 {
     clauseCollection.Or(property.MemberName(), SqlOperator.Is, "null");
     return(clauseCollection);
 }
Beispiel #4
0
 public static IClauseCollection <T> Or <T, TProp>(this IClauseCollection <T> clauseCollection, Expression <Func <T, TProp> > property, TProp value)
 {
     return(clauseCollection.Or(property, SqlOperator.Equal, value));
 }
Beispiel #5
0
 public static IClauseCollection Or(this IClauseCollection clauseCollection, string column, object value)
 {
     return(clauseCollection.Or(column, SqlOperator.Equal, value));
 }