예제 #1
0
 internal static void Validate(ExportEventStatus 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.RecordCount == null)
     {
         throw new ArgumentException("RecordCount is required");
     }
 }
 /// <summary>
 /// Constructor for ExportPedidoEventPayload
 /// </summary>
 /// <param name="eventpl">
 ///<summary>
 /// TBD
 ///</summary>
 /// </param>
 public ExportPedidoEventPayload(ExportEventStatus eventpl)
 {
     this.Eventpl = eventpl;
 }
예제 #3
0
 /// <summary>
 /// Constructor for ExportClienteEventPayload
 /// </summary>
 /// <param name="eventpl">
 ///<summary>
 /// TBD
 ///</summary>
 /// </param>
 public ExportClienteEventPayload(ExportEventStatus eventpl)
 {
     this.Eventpl = eventpl;
 }
예제 #4
0
 public static void Validate(ExportEventStatus toValidate)
 {
     Validate(toValidate, new ArrayList());
 }
예제 #5
0
 /// <summary>
 /// Constructor for ExportItemEventPayload
 /// </summary>
 /// <param name="eventpl">
 ///<summary>
 /// TBD
 ///</summary>
 /// </param>
 public ExportItemEventPayload(ExportEventStatus eventpl)
 {
     this.Eventpl = eventpl;
 }