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)); }
public static Task <bool> AnyAsync <T>(this IQueryable <T> source) { if (IsInUnitTest) { return(Task.FromResult(source.Any())); } return(QE.AnyAsync(source)); }