/// <summary>
        /// Is the specification satisfied?
        /// </summary>
        /// <returns></returns>
        public override Expression <Func <T, bool> > IsSatisfied()
        {
            var expression1 = _spec1.IsSatisfied();
            var expression2 = _spec2.IsSatisfied();

            return(expression1.Or(expression2));
        }
Example #2
0
 /// <summary>
 /// Is the specification satisfied?
 /// </summary>
 /// <returns></returns>
 public override Expression <Func <T, bool> > IsSatisfied()
 {
     return(ExpressionExtensions.Not(_spec.IsSatisfied()));
 }