Exemplo n.º 1
0
        public virtual void GetMaxAsync()
        {
            var writeEntries = new List <Entity>();

            for (var i = 0; i < 10; i++)
            {
                writeEntries.Add(NewEntity());
            }

            queryable.WriteAsync(writeEntries.ToArray()).Wait();

            Assert.True(queryable.GetMaxAsync(queryable.GetQueryableAsync <Entity>().Result, x => x.id).Result >= 10);
        }
 public Task <IQueryable <E> > GetQueryableAsync <E>() where E : EntityBase
 {
     return(query.GetQueryableAsync <E>());
 }