/// <summary> /// Initializes a new instance of the <see cref="CreditCardNumberCheck"/> class. /// </summary> /// <param name="creditCardNetworkMapToMethod">The credit card network code map to method.</param> public CreditCardNumberCheck(ICreditCardNetworkMapToMethod creditCardNetworkMapToMethod) { CreditCardNetworkMapToMethod = creditCardNetworkMapToMethod; CreditCardNumberMapToNetwork = new CreditCardNumberMapToNetwork(); }
/// <summary> /// Initializes a new instance of the <see cref="CreditCardNumberCheck"/> class. /// </summary> /// <param name="creditCardNetworkMapToMethod">The credit card network code to method mapper.</param> /// <param name="creditCardNumberMapToNetwork">The credit card number to network mapper.</param> public CreditCardNumberCheck(ICreditCardNetworkMapToMethod creditCardNetworkMapToMethod, ICreditCardNumberMapToNetwork creditCardNumberMapToNetwork) { CreditCardNetworkMapToMethod = creditCardNetworkMapToMethod; CreditCardNumberMapToNetwork = creditCardNumberMapToNetwork; }
/// <summary> /// Initializes a new instance of the <see cref="CreditCardNumberCheck"/> class. /// </summary> public CreditCardNumberCheck() { CreditCardNetworkMapToMethod = new CreditCardNetworkMapToMethodFactory(); CreditCardNumberMapToNetwork = new CreditCardNumberMapToNetwork(); }