/// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="Microsoft.Rest.ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (PriceToEstimateFees != null)
     {
         PriceToEstimateFees.Validate();
     }
 }
예제 #2
0
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (MarketplaceId == null)
     {
         throw new ValidationException(ValidationRules.CannotBeNull, "MarketplaceId");
     }
     if (PriceToEstimateFees == null)
     {
         throw new ValidationException(ValidationRules.CannotBeNull, "PriceToEstimateFees");
     }
     if (Identifier == null)
     {
         throw new ValidationException(ValidationRules.CannotBeNull, "Identifier");
     }
     if (PriceToEstimateFees != null)
     {
         PriceToEstimateFees.Validate();
     }
 }