No interface implementation for SortDescriptor class in NEST client for c#

I am using NEST 5.6.5 for my c# client and wanted to write a query with a custom sort algorithm. I am using the below Sort Api

public SearchDescriptor Sort(Func<SortDescriptor<T> , IPromise<IList<ISort>>> selector);

I am implementing the Func in a separate class with some logic to decide the sort criteria. Since API is passing a concreteSortDescriptor<T> I not able to unit test the Func and its logic. Is there an Interface that can be used instead of concrete implementation that can be used for unit testing the sort criteria logic code.

How are you looking to unit test, on the resultant JSON?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.