示例#1
0
 public bool ValidateCreditCard(ICreditValidationService creditValidator)
 {
     Printer.Print(ConsoleColor.Cyan);
     return(creditValidator.IsValid(CreditCard.NameOnCard, CreditCard.CardNumber));
 }
示例#2
0
 public bool ValidateCreditCard(ICreditValidationService creditValidator)
 {
     return(creditValidator.IsValid(CreditCard.NameOnCard, CreditCard.CardNumber));
 }