コード例 #1
0
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (InstructionIdentification == null)
     {
         throw new ValidationException(ValidationRules.CannotBeNull, "InstructionIdentification");
     }
     if (CurrencyOfTransfer == null)
     {
         throw new ValidationException(ValidationRules.CannotBeNull, "CurrencyOfTransfer");
     }
     if (InstructedAmount == null)
     {
         throw new ValidationException(ValidationRules.CannotBeNull, "InstructedAmount");
     }
     if (CreditorAccount == null)
     {
         throw new ValidationException(ValidationRules.CannotBeNull, "CreditorAccount");
     }
     if (InstructedAmount != null)
     {
         InstructedAmount.Validate();
     }
     if (ExchangeRateInformation != null)
     {
         ExchangeRateInformation.Validate();
     }
     if (DebtorAccount != null)
     {
         DebtorAccount.Validate();
     }
     if (CreditorAccount != null)
     {
         CreditorAccount.Validate();
     }
 }
コード例 #2
0
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (InstructionIdentification == null)
     {
         throw new ValidationException(ValidationRules.CannotBeNull, "InstructionIdentification");
     }
     if (EndToEndIdentification == null)
     {
         throw new ValidationException(ValidationRules.CannotBeNull, "EndToEndIdentification");
     }
     if (InstructedAmount == null)
     {
         throw new ValidationException(ValidationRules.CannotBeNull, "InstructedAmount");
     }
     if (CreditorAccount == null)
     {
         throw new ValidationException(ValidationRules.CannotBeNull, "CreditorAccount");
     }
     if (InstructedAmount != null)
     {
         InstructedAmount.Validate();
     }
     if (DebtorAccount != null)
     {
         DebtorAccount.Validate();
     }
     if (CreditorAccount != null)
     {
         CreditorAccount.Validate();
     }
 }
コード例 #3
0
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (Frequency == null)
     {
         throw new ValidationException(ValidationRules.CannotBeNull, "Frequency");
     }
     if (CurrencyOfTransfer == null)
     {
         throw new ValidationException(ValidationRules.CannotBeNull, "CurrencyOfTransfer");
     }
     if (InstructedAmount == null)
     {
         throw new ValidationException(ValidationRules.CannotBeNull, "InstructedAmount");
     }
     if (CreditorAccount == null)
     {
         throw new ValidationException(ValidationRules.CannotBeNull, "CreditorAccount");
     }
     if (InstructedAmount != null)
     {
         InstructedAmount.Validate();
     }
     if (DebtorAccount != null)
     {
         DebtorAccount.Validate();
     }
     if (CreditorAccount != null)
     {
         CreditorAccount.Validate();
     }
 }
コード例 #4
0
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (Frequency == null)
     {
         throw new ValidationException(ValidationRules.CannotBeNull, "Frequency");
     }
     if (FirstPaymentAmount == null)
     {
         throw new ValidationException(ValidationRules.CannotBeNull, "FirstPaymentAmount");
     }
     if (CreditorAccount == null)
     {
         throw new ValidationException(ValidationRules.CannotBeNull, "CreditorAccount");
     }
     if (FirstPaymentAmount != null)
     {
         FirstPaymentAmount.Validate();
     }
     if (RecurringPaymentAmount != null)
     {
         RecurringPaymentAmount.Validate();
     }
     if (FinalPaymentAmount != null)
     {
         FinalPaymentAmount.Validate();
     }
     if (DebtorAccount != null)
     {
         DebtorAccount.Validate();
     }
     if (CreditorAccount != null)
     {
         CreditorAccount.Validate();
     }
 }
コード例 #5
0
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (FileType == null)
     {
         throw new ValidationException(ValidationRules.CannotBeNull, "FileType");
     }
     if (FileHash == null)
     {
         throw new ValidationException(ValidationRules.CannotBeNull, "FileHash");
     }
     if (DebtorAccount != null)
     {
         DebtorAccount.Validate();
     }
 }