Пример #1
0
        public virtual void SimpleReadTest()
        {
            //Can we insert objects and get them out?
            var entity = NewEntity();

            queryable.WriteAsync(entity).Wait();
            var entities = queryable.GetAllAsync <Entity>().Result;

            Assert.Equal(entity, entities.First());
            //NOTE: this also assumes entity id is written!
        }
 public Task <List <E> > GetAllAsync <E>() where E : EntityBase
 {
     return(LockAsync(() => query.GetAllAsync <E>()));
 }