public Card(string cardNumber, string expiry, int securityCode, string accountHolder) { CardNumber = new CardNumber(cardNumber); ExpiryDate = new MonthYear(expiry); SecurityCode = CardNumberLogic.ParseSecurityCode(securityCode); AccountHolderName = accountHolder; }
public CardNumber(string cardNumber) { Digits = CardNumberLogic.CreateCardNumberByteArray(cardNumber); }