Пример #1
0
 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);
     }
 }
Пример #2
0
 /// <summary>
 /// Constructor for ImportClienteEventPayload
 /// </summary>
 /// <param name="eventpl">
 ///<summary>
 /// TBD
 ///</summary>
 /// </param>
 public ImportClienteEventPayload(ImportEventStatus eventpl)
 {
     this.Eventpl = eventpl;
 }
Пример #3
0
 public static void Validate(ImportEventStatus toValidate)
 {
     Validate(toValidate, new ArrayList());
 }