internal static void Validate(ImportConfig toValidate, IList validated) { if (validated.Contains(toValidate)) { return; } validated.Add(toValidate); if (toValidate.Uri == null) { throw new ArgumentException("Uri is required"); } if (toValidate.Layout == null) { throw new ArgumentException("Layout is required"); } toValidate.Layout.Validate(validated); if (toValidate.Async == null) { throw new ArgumentException("Async is required"); } if (toValidate.BatchSize == null) { throw new ArgumentException("BatchSize is required"); } if (toValidate.ErrorStrategy == null) { throw new ArgumentException("ErrorStrategy is required"); } }
public static void Validate(ImportConfig toValidate) { Validate(toValidate, new ArrayList()); }
/// <summary> /// Constructor for ImportItemInput /// </summary> /// <param name="config"> ///<summary> /// TBD ///</summary> /// </param> public ImportItemInput(ImportConfig config) { this.Config = config; }
/// <summary> /// Constructor for ImportPedidoInput /// </summary> /// <param name="config"> ///<summary> /// TBD ///</summary> /// </param> public ImportPedidoInput(ImportConfig config) { this.Config = config; }
/// <summary> /// Constructor for ImportClienteInput /// </summary> /// <param name="config"> ///<summary> /// TBD ///</summary> /// </param> public ImportClienteInput(ImportConfig config) { this.Config = config; }