private Validator(Bill bill) { _billIn = bill; _billOut = new Bill(); _validationResult = new ValidationResult(); }
/// <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()); }