コード例 #1
0
        public void SortBy_SetsCorrectField()
        {
            var          result    = _service.SortBy(x => x.StringProperty) as ElasticSearchService <ComplexType>;
            const string fieldName = "StringProperty";

            Assert.Equal(result.SortFields[0].FieldName, fieldName);
        }
コード例 #2
0
        public void SortBy_SetsCorrectField()
        {
            var result = _service.SortBy(x => x.StringProperty) as ElasticSearchService <ComplexType>;

            Assert.Equal(result.SortFields[0].FieldName, nameof(ComplexType.StringProperty));
        }