Esempio n. 1
0
 public void AddCreditCardTest()
 {
     Assert.AreEqual(2, _creditCardService.GetAllCreditCards().Count());
     _creditCardService.AddCreditCard(_creditCard);
     Assert.AreEqual(3, _creditCardService.GetAllCreditCards().Count());
 }
Esempio n. 2
0
 public IEnumerable <CreditCardModel> GetAllCreditCards()
 {
     return(_creditCardService.GetAllCreditCards().Select(card => new CreditCardModel(card)));
 }