using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Practices.EnterpriseLibrary.Validation;
using Microsoft.Practices.EnterpriseLibrary.Validation.Configuration;
using Microsoft.Practices.EnterpriseLibrary.Common.Configuration;
using System.Collections.Specialized;
using System.Net.Mail;
using System.Text.RegularExpressions;

namespace TERASOLUNA.Fw.CommonUT.Validation.VabValidatorTestData
{
    [ConfigurationElementType(typeof(CustomValidatorData))]
    class DummyValidator04_WithTestException : Validator
    {
        public DummyValidator04_WithTestException(NameValueCollection attributes)
            : base(null, null)
        {
        }

        protected DummyValidator04_WithTestException(string messageTemplate, string tag)
            : base(messageTemplate, tag)
        {
        }

        protected override string DefaultMessageTemplate
        {
            get { return "DummyValidator04_WithApplicationException_fail"; }
        }

        protected override void DoValidate(object objectToValidate,
                                          object currentTarget,
                                           string key,
                                           ValidationResults validationResults)
        {

            throw new TestException();
        }
    }
}
