示例#1
0
        // Simple check to see if model is valid
        // This is only used for final validation to detect account changes or tampering
        // therefore does not need to feed back errors to user
        public bool Validate(AmendDirectDebitVm directDebitVm)
        {
            AmendDirectDebitVmValidator validator = new AmendDirectDebitVmValidator();
            ValidationResult            result    = validator.Validate(directDebitVm);

            return(result.IsValid);
        }
 public void Initialize()
 {
     _validator = new AmendDirectDebitVmValidator();
 }