internal static void Validate(CreateBulkPedidoInput toValidate, IList validated) { if (validated.Contains(toValidate)) { return; } validated.Add(toValidate); if (toValidate.Entities == null || toValidate.Entities.Count == 0) { throw new ArgumentException("Entities is required, at least one value must be present"); } }
public static void Validate(CreateBulkPedidoInput toValidate) { Validate(toValidate, new ArrayList()); }