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; }
public static void Validate(ImportEventStatus toValidate) { Validate(toValidate, new ArrayList()); }