/// <inheritdoc/> public void Visit(ExistsClause existsClause) { Ensure.IsNotNull(existsClause, nameof(existsClause)); EnsureClause.StringIsNotNullOrEmpty(existsClause.FieldName, nameof(existsClause.FieldName)); existsClause.KustoQL = $"{KustoQLOperators.IsNotNull}({existsClause.FieldName})"; }
public string ExistsVisit_WithValidInput_ReturnsIsNotNullResponse() { var existsClause = new ExistsClause { FieldName = "MyField", }; var visitor = new ElasticSearchDSLVisitor(SchemaRetrieverMock.CreateMockSchemaRetriever()); visitor.Visit(existsClause); return(existsClause.KustoQL); }