/// <summary> /// Creates a new instance of the <b>UrlValidator</b> class. /// </summary> /// <param name="test">The expression to validate.</param> /// <param name="when">The expression that determines if this validator should be evaluated.</param> /// <param name="cardType">Credit Card type validator to use.</param> public CreditCardValidator(IExpression test, IExpression when, ICreditCardType cardType) : base(test, when) { AssertUtils.ArgumentNotNull(test, "test"); this.m_cardType = cardType; }
/// <summary> /// Creates a new instance of the <b>UrlValidator</b> class. /// </summary> /// <param name="test">The expression to validate.</param> /// <param name="when">The expression that determines if this validator should be evaluated.</param> /// <param name="cardType">Credit Card type validator to use.</param> public CreditCardValidator(string test, string when, ICreditCardType cardType) : base(test, when) { AssertUtils.ArgumentHasText(test, "test"); this.m_cardType = cardType; }