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.