コード例 #1
0
 public CreditCardData(string creditCardNumber,
                       CreditCardExpiration expiration,
                       SecurityCodeIndicator indicator,
                       string securityCode)
 {
     _expiration      = expiration;
     CreditCardNumber = creditCardNumber;
     Indicator        = indicator;
     SecurityCode     = securityCode;
 }
コード例 #2
0
ファイル: CreditCardData.cs プロジェクト: andrelmp/Cielo
 public CreditCardData(string creditCardNumber,
     CreditCardExpiration expiration,
     SecurityCodeIndicator indicator,
     string securityCode)
 {
     _expiration = expiration;
     CreditCardNumber = creditCardNumber;
     Indicator = indicator;
     SecurityCode = securityCode;
 }
コード例 #3
0
 public void ToString_GivenACreditCardWithYeat2013AndMonth05_ShouldReturnStringFormatedYYYYMM()
 {
     var expiration = new CreditCardExpiration(2013, 05);
     expiration.ToString().Should().Be("201305");
 }