public void ShouldRun()
        {
            var response = _repository.Delete(new Person()
            {
                Id = 1
            });

            response.Found.Should().BeTrue();
        }
        public void ShouldRun()
        {
            var response = _repository.Delete <Person>("1");

            response.Found.Should().BeTrue();
        }
示例#3
0
        public async Task <bool> DeleteDocument(string elasticsearchUrl, string indice)
        {
            var result = _elasticsearchRepository.Delete <DeleteDocumentDto>($"{elasticsearchUrl}/{indice}", new StringContent(string.Empty, Encoding.UTF8, "application/json"));

            return(result.Acknowledged);
        }