Esempio n. 1
0
        public string Translate_WithValidInput_ReturnsValidResponse()
        {
            var query = File.ReadAllText($"{DATADIR}/simple_k2_query.json");

            // Should succeed as all arguments are valid. the result is just a simple
            // hard coded mock
            var querydata = elasticQueryTranslator.TranslateQuery(INDEX, query);

            return(querydata.QueryCommandText);
        }