VersionOne.ServiceHost.ConfigurationTool.Entities.ClearQuestServiceEntity.CheckPriorityMappings C# (CSharp) Method

CheckPriorityMappings() private method

private CheckPriorityMappings ( ValidationResults results ) : void
results ValidationResults
return void
        public void CheckPriorityMappings(ValidationResults results) {
            var validator = ValidationFactory.CreateValidator<ClearQuestPriorityMapping>();

            foreach(ClearQuestPriorityMapping mapping in PriorityMappings) {
                var mappingValidationResults = validator.Validate(mapping);

                if(!mappingValidationResults.IsValid) {
                    results.AddAllResults(mappingValidationResults);
                }
            }
        }