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); }
public void SortBy_SetsCorrectField() { var result = _service.SortBy(x => x.StringProperty) as ElasticSearchService <ComplexType>; Assert.Equal(result.SortFields[0].FieldName, nameof(ComplexType.StringProperty)); }