public bool Validate(StringBuilder errorMessageBuilder)
{
var isValid = true;
if (Mappings.Any(m => string.IsNullOrEmpty(m.OutlookProperty) || string.IsNullOrEmpty(m.DavProperty)))
{
errorMessageBuilder.AppendLine("- Custom properties must not be empty.");
isValid = false;
}
if (Mappings.Any(m => !string.IsNullOrEmpty (m.DavProperty) && !m.DavProperty.StartsWith ("X-")))
{
errorMessageBuilder.AppendLine("- DAV X-Attributes for manual mapped properties have to start with 'X-'");
isValid = false;
}
return isValid;
}