public void OrderByDescendingScoreFieldTranslatesToScoreSortDescending()
        {
            var ordered     = Robots.OrderByDescending(e => ElasticFields.Score);
            var sortOptions = ElasticQueryTranslator.Translate(Mapping, ordered.Expression).SearchRequest.SortOptions;

            Assert.Single(sortOptions, o => !o.Ascending && o.Name == "_score");
            Assert.Equal(1, sortOptions.Count);
        }
        public void OrderByDescendingTranslatesToSortDescending()
        {
            var ordered     = Robots.OrderByDescending(e => e.Name);
            var sortOptions = ElasticQueryTranslator.Translate(Mapping, "prefix", ordered.Expression).SearchRequest.SortOptions;

            Assert.Single(sortOptions, o => !o.Ascending && o.Name == "prefix.name");
            Assert.Equal(1, sortOptions.Count);
        }