internal static void Validate(ExportPedidoOutput toValidate, IList validated) { if (validated.Contains(toValidate)) { return; } validated.Add(toValidate); if (toValidate.ExportJobId == null) { throw new ArgumentException("ExportJobId is required"); } }
public static void Validate(ExportPedidoOutput toValidate) { Validate(toValidate, new ArrayList()); }