Пример #1
0
 protected override void ExpectResponse(DeleteResponse response)
 {
     response.ShouldNotBeValid();
     response.Result.Should().Be(Result.Error);
     response.ServerError.Should().NotBeNull();
     response.ServerError.Error.Reason.Should().StartWith("no such index");
 }
 protected override void ExpectResponse(DeleteResponse response)
 {
     response.ShouldNotBeValid();
     response.Result.Should().Be(Result.NotFound);
     response.Index.Should().Be("project");
     response.Id.Should().Be(CallIsolatedValue);
     response.Shards.Total.Should().BeGreaterOrEqualTo(1);
     response.Shards.Successful.Should().BeGreaterOrEqualTo(1);
     response.PrimaryTerm.Should().BeGreaterThan(0);
     response.SequenceNumber.Should().BeGreaterThan(0);
 }