public PropertyValidationResult ValidateProperties() { var propertyValidationResult = new PropertyValidationResult(); if(string.IsNullOrEmpty(this.CodeInput)) propertyValidationResult.Add("Code input is needed"); if (MergeItems == null || !MergeItems.Any()) propertyValidationResult.Add("Merge items are needed"); return propertyValidationResult; }
public PropertyValidationResult ValidateProperties() { var propertyValidationResult = new PropertyValidationResult(); if (string.IsNullOrEmpty(this.CodeInput)) { propertyValidationResult.Add("Code input is needed"); } if (MergeItems == null || !MergeItems.Any()) { propertyValidationResult.Add("Merge items are needed"); } return(propertyValidationResult); }
public PropertyValidationResult ValidateProperties() { var propertyValidationResult = new PropertyValidationResult(); if (MergeParings == null || !MergeParings.Any()) { propertyValidationResult.Add("MergeParings are required"); return propertyValidationResult; } var paringPropertyValidationResults = this.MergeParings.Select(i => i.ValidateProperties()); if(paringPropertyValidationResults.Any()) propertyValidationResult.Add("Not all merge parings are valid"); return propertyValidationResult; }
public PropertyValidationResult ValidateProperties() { var propertyValidationResult = new PropertyValidationResult(); if (MergeParings == null || !MergeParings.Any()) { propertyValidationResult.Add("MergeParings are required"); return(propertyValidationResult); } var paringPropertyValidationResults = this.MergeParings.Select(i => i.ValidateProperties()); if (paringPropertyValidationResults.Any()) { propertyValidationResult.Add("Not all merge parings are valid"); } return(propertyValidationResult); }