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