mirror of
https://github.com/Biarity/Sieve.git
synced 2024-11-22 21:42:38 +01:00
863d75bdc1
* Modular configuration for property mappings * Update Readme, unit tests and sample Co-authored-by: Steven Decoodt <steven.decoodt@vinci-energies.net>
27 lines
839 B
C#
27 lines
839 B
C#
using Microsoft.Extensions.Options;
|
|
using Sieve.Models;
|
|
using Sieve.Services;
|
|
using SieveUnitTests.Abstractions.Entity;
|
|
using SieveUnitTests.Entities;
|
|
|
|
namespace SieveUnitTests.Services
|
|
{
|
|
public class ModularConfigurationSieveProcessor : SieveProcessor
|
|
{
|
|
public ModularConfigurationSieveProcessor(
|
|
IOptions<SieveOptions> options,
|
|
ISieveCustomSortMethods customSortMethods,
|
|
ISieveCustomFilterMethods customFilterMethods)
|
|
: base(options, customSortMethods, customFilterMethods)
|
|
{
|
|
}
|
|
|
|
protected override SievePropertyMapper MapProperties(SievePropertyMapper mapper)
|
|
{
|
|
return mapper
|
|
.ApplyConfiguration<SieveConfigurationForPost>()
|
|
.ApplyConfiguration<SieveConfigurationForIPost>();
|
|
}
|
|
}
|
|
}
|