Пример #1
0
        public override IReadOnlyList <TResult> BuildResults(AddressMatchBuilder builder)
        {
            List <TResult> results = builder.AllAddresses().Take(_maxNumberOfResults).Select(_mapper.Map).ToList();

            results.ForEach(s => s.Score = 100);

            return(results);
        }
Пример #2
0
 protected override bool IsValidMatch(AddressMatchBuilder matchResult) => matchResult.AllAddresses().Any();
Пример #3
0
 protected override IReadOnlyList <TResult> BuildResultsInternal(AddressMatchBuilder results) => results.AllAddresses().Select(_mapper.Map).ToList();
Пример #4
0
 protected override bool?IsValidMatch(AddressMatchBuilder?builder)
 => builder?.AllAddresses().Any();