void DbTestCard(CardTestInfo cardInfo)
 {
     using (var db = new CardValidationServiceDB())
     {
         var res = db.ValidateCard(cardInfo.Number);
         Assert.AreEqual(cardInfo.Type, res.CardType);
         Assert.AreEqual(cardInfo.Status, res.ValidationStatus);
     }
 }
Exemple #2
0
 public ValidateCard_Result ValidateCard(decimal cardNumber)
 => DB.ValidateCard(cardNumber);