/// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public override void Validate()
 {
     base.Validate();
     if (ScriptPath == null)
     {
         throw new ValidationException(ValidationRules.CannotBeNull, "ScriptPath");
     }
     if (ScriptLinkedService == null)
     {
         throw new ValidationException(ValidationRules.CannotBeNull, "ScriptLinkedService");
     }
     if (ScriptLinkedService != null)
     {
         ScriptLinkedService.Validate();
     }
 }
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public override void Validate()
 {
     base.Validate();
     if (StorageLinkedServices != null)
     {
         foreach (var element in StorageLinkedServices)
         {
             if (element != null)
             {
                 element.Validate();
             }
         }
     }
     if (ScriptLinkedService != null)
     {
         ScriptLinkedService.Validate();
     }
 }