public ISpecificationResults <TCandidate> GetResults()
                {
                    var specificationResults = new SpecificationResults <TCandidate>();

                    foreach (TCandidate candidate in _candidates)
                    {
                        var result = SpecificationResult <TCandidate> .Create(_validationGroups, candidate);

                        specificationResults.Add(result);
                    }

                    return(specificationResults);
                }
Exemplo n.º 2
0
 public ISpecificationResult <TCandidate> GetResult()
 => SpecificationResult <TCandidate> .Create(_validationGroups, _candidate);