public CreditCardData(string creditCardNumber, CreditCardExpiration expiration, SecurityCodeIndicator indicator, string securityCode) { _expiration = expiration; CreditCardNumber = creditCardNumber; Indicator = indicator; SecurityCode = securityCode; }
public void ToString_GivenACreditCardWithYeat2013AndMonth05_ShouldReturnStringFormatedYYYYMM() { var expiration = new CreditCardExpiration(2013, 05); expiration.ToString().Should().Be("201305"); }