示例#1
0
 public static Task <bool> AnyAsync <T>(this IQueryable <T> source, Expression <Func <T, bool> > predicate)
 {
     if (IsInUnitTest)
     {
         return(Task.FromResult(source.Any(predicate)));
     }
     return(QE.AnyAsync(source, predicate));
 }
示例#2
0
 public static Task <bool> AnyAsync <T>(this IQueryable <T> source)
 {
     if (IsInUnitTest)
     {
         return(Task.FromResult(source.Any()));
     }
     return(QE.AnyAsync(source));
 }