internal static void Validate(ImportEventStatus toValidate, IList validated) { if (validated.Contains(toValidate)) { return; } validated.Add(toValidate); if (toValidate.ImporterId == null) { throw new ArgumentException("ImporterId is required"); } if (toValidate.EventType == null) { throw new ArgumentException("EventType is required"); } if (toValidate.Status == null) { throw new ArgumentException("Status is required"); } if (toValidate.RecordCount == null) { throw new ArgumentException("RecordCount is required"); } if (toValidate.ImportReport != null) { toValidate.ImportReport.Validate(validated); } }
/// <summary> /// Constructor for ImportClienteEventPayload /// </summary> /// <param name="eventpl"> ///<summary> /// TBD ///</summary> /// </param> public ImportClienteEventPayload(ImportEventStatus eventpl) { this.Eventpl = eventpl; }
/// <summary> /// Constructor for ImportPedidoEventPayload /// </summary> /// <param name="eventpl"> ///<summary> /// TBD ///</summary> /// </param> public ImportPedidoEventPayload(ImportEventStatus eventpl) { this.Eventpl = eventpl; }
public static void Validate(ImportEventStatus toValidate) { Validate(toValidate, new ArrayList()); }
/// <summary> /// Constructor for ImportItemEventPayload /// </summary> /// <param name="eventpl"> ///<summary> /// TBD ///</summary> /// </param> public ImportItemEventPayload(ImportEventStatus eventpl) { this.Eventpl = eventpl; }