Exemplo n.º 1
0
 private Validator(Bill bill)
 {
     _billIn           = bill;
     _billOut          = new Bill();
     _validationResult = new ValidationResult();
 }
Exemplo n.º 2
0
        /// <summary>
        /// Validates the QR bill data and returns the validation messages (if any) and
        /// the cleaned bill data.
        /// </summary>
        /// <param name="bill">The bill data to validate.</param>
        /// <returns>The validation result.</returns>
        internal static ValidationResult Validate(Bill bill)
        {
            Validator validator = new Validator(bill);

            return(validator.ValidateBill());
        }