Beispiel #1
0
        public void DeleteSuccess()
        {
            var model = new GetModelService().GetModel();

            _client.Add(model);
            Assert.Equal(1L, _client.Delete(model));
        }
Beispiel #2
0
        public bool Delete(Order order)
        {
            var result = _mongoClient.Delete(Convert(order)) > 0;

            _cache.Delete(order.Id);
            return(result);
        }
 public void Delete(Guid id)
 {
     _client.Delete <ArticleCategoryEntity>(a => a.Id == id);
 }