using Microsoft.Extensions.Options; using Sieve.Models; using Sieve.Services; using SieveUnitTests.Entities; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace SieveUnitTests.Services { public class ApplicationSieveProcessor : SieveProcessor { public ApplicationSieveProcessor( IOptions options, ISieveCustomSortMethods customSortMethods, ISieveCustomFilterMethods customFilterMethods) : base(options, customSortMethods, customFilterMethods) { } protected override SievePropertyMapper MapProperties(SievePropertyMapper mapper) { mapper.Property(p => p.ThisHasNoAttributeButIsAccessible) .CanSort() .CanFilter() .HasName("shortname"); mapper.Property(p => p.OnlySortableViaFluentApi) .CanSort(); return mapper; } } }