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