/// <summary> /// Validate the object. /// </summary> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown if validation fails /// </exception> public virtual void Validate() { if (PriceToEstimateFees != null) { PriceToEstimateFees.Validate(); } }
/// <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(); } }