using System; using moviestore.core.infrastructure.extensions; namespace trainingprep.collections { public class SpecificationBuilder { private readonly Func property_accessor; public SpecificationBuilder(Func property_accessor) { this.property_accessor = property_accessor; } public ISpecification equal_to(TOutput property) { return new EqualsToSpecification(property_accessor,property); } public ISpecification not_equal_to(TOutput property) { return new NotEqualsToSpecification(property_accessor, property); } } }