public void DeleteSuccess() { var model = new GetModelService().GetModel(); _client.Add(model); Assert.Equal(1L, _client.Delete(model)); }
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); }