private void AssertGetWatchResponse(IGetWatchResponse response, string watchId)
 {
     response.IsValid.Should().Be(true);
     response.Found.Should().Be(true);
     response.ConnectionStatus.HttpStatusCode.Should().Be(200);
     response.Id.Should().NotBeNullOrWhiteSpace().And.Be(watchId);
     response.Watch.ThrottlePeriod.Should().Be("10s");
 }
 private void AssertGetWatchResponse(IGetWatchResponse response, string watchId)
 {
     response.IsValid.Should().Be(true);
     response.Found.Should().Be(true);
     response.ConnectionStatus.HttpStatusCode.Should().Be(200);
     response.Id.Should().NotBeNullOrWhiteSpace().And.Be(watchId);
     response.Watch.ThrottlePeriod.Should().Be("10s");
 }
 protected virtual void Assert(IGetWatchResponse response, string expectedId)
 {
     response.IsValid.Should().BeTrue();
     response.ConnectionStatus.HttpStatusCode.Should().Be(404);
     response.Found.Should().BeFalse();
     response.Watch.Should().BeNull();
     response.Id.Should().Be(expectedId);
 }
 protected virtual void Assert(IGetWatchResponse response, string expectedId)
 {
     response.IsValid.Should().BeTrue();
     response.ConnectionStatus.HttpStatusCode.Should().Be(404);
     response.Found.Should().BeFalse();
     response.Watch.Should().BeNull();
     response.Id.Should().Be(expectedId);
 }
 private void AssertGetWatchResponse(IGetWatchResponse response, string watchId)
 {
     response.IsValid.Should().Be(true);
     response.Found.Should().Be(true);
     response.ConnectionStatus.HttpStatusCode.Should().Be(200);
     response.Id.Should().NotBeNullOrWhiteSpace().And.Be(watchId);
     response.Watch.Actions.Should().NotBeEmpty().And
         .ContainKey("test_index");
     response.Watch.Actions["test_index"].Should().NotBeNull();
     response.Watch.Actions["test_index"].ThrottlePeriod.Should().Be("10s");
     var indexAction = response.Watch.Actions["test_index"] as IndexAction;
     indexAction.Should().NotBeNull();
     indexAction.Index.Should().Be("test");
     indexAction.DocType.Should().Be("test2");
 }
        private void AssertGetWatchResponse(IGetWatchResponse response, string watchId)
        {
            response.IsValid.Should().Be(true);
            response.Found.Should().Be(true);
            response.ConnectionStatus.HttpStatusCode.Should().Be(200);
            response.Id.Should().NotBeNullOrWhiteSpace().And.Be(watchId);
            response.Watch.Actions.Should().NotBeEmpty().And
            .ContainKey("test_index");
            response.Watch.Actions["test_index"].Should().NotBeNull();
            response.Watch.Actions["test_index"].ThrottlePeriod.Should().Be("10s");
            var indexAction = response.Watch.Actions["test_index"] as IndexAction;

            indexAction.Should().NotBeNull();
            indexAction.Index.Should().Be("test");
            indexAction.DocType.Should().Be("test2");
        }
 protected virtual void Assert(IGetWatchResponse response, string expectedId)
 {
     response.IsValid.Should().BeTrue();
     response.ConnectionStatus.HttpStatusCode.Should().Be(200);
     response.Found.Should().BeTrue();
     response.Id.Should().Be(expectedId);
     response.Status.Should().NotBeNull();
     response.Status.Actions.Should().NotBeEmpty();
     var testIndex = response.Status.Actions["test_index"];
     testIndex.Acknowledgement.Should().NotBeNull();
     testIndex.Acknowledgement.Timestamp.Should().NotBeNull();
     testIndex.Acknowledgement.State.Should().Be("awaits_successful_execution");
     response.Watch.Should().NotBeNull();
     response.Watch.Metadata.Should().NotBeNull();
     response.Watch.Trigger.Should().NotBeNull();
     response.Watch.Trigger.Schedule.Should().NotBeNull();
     response.Watch.Condition.Should().NotBeNull();
     response.Watch.Input.Should().NotBeNull();
     response.Watch.Actions.Should().NotBeEmpty();
     response.Watch.Actions.Count().Should().Be(1);
 }
        protected virtual void Assert(IGetWatchResponse response, string expectedId)
        {
            response.IsValid.Should().BeTrue();
            response.ConnectionStatus.HttpStatusCode.Should().Be(200);
            response.Found.Should().BeTrue();
            response.Id.Should().Be(expectedId);
            response.Status.Should().NotBeNull();
            response.Status.Actions.Should().NotBeEmpty();
            var testIndex = response.Status.Actions["test_index"];

            testIndex.Acknowledgement.Should().NotBeNull();
            testIndex.Acknowledgement.Timestamp.Should().NotBeNull();
            testIndex.Acknowledgement.State.Should().Be("awaits_successful_execution");
            response.Watch.Should().NotBeNull();
            response.Watch.Metadata.Should().NotBeNull();
            response.Watch.Trigger.Should().NotBeNull();
            response.Watch.Trigger.Schedule.Should().NotBeNull();
            response.Watch.Condition.Should().NotBeNull();
            response.Watch.Input.Should().NotBeNull();
            response.Watch.Actions.Should().NotBeEmpty();
            response.Watch.Actions.Count().Should().Be(2);
        }