Пример #1
0
 private void ValidateUserMapping(PluginProfileErrorCollection errors)
 {
     if (UserMapping.Select(x => x.Key.ToLower()).Distinct().Count() != UserMapping.Count)
     {
         errors.Add(new PluginProfileError {
             FieldName = "user-mapping", Message = "Can't map a TFS user to TargetProcess user twice."
         });
     }
 }