Esempio n. 1
0
        public virtual void SimpleDeleteTest()
        {
            var entity = NewEntity();

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

            Assert.Equal(entity, entities.First());
            queryable.DeleteAsync(entity).Wait();
            entities = queryable.GetAllAsync <Entity>().Result;
            Assert.Empty(entities);
        }
        public async Task DeleteAsync <E>(params E[] items) where E : EntityBase
        {
            await LockAsync(() => query.DeleteAsync(items));

            signaler.SignalItems(items);
        }