예제 #1
0
 // GET: CreditCards
 public async Task <IActionResult> Index()
 {
     return(View(await _creditCardService.GetAllCreditCards()));
 }
예제 #2
0
 public void AddCreditCardTest()
 {
     Assert.AreEqual(2, _cardService.GetAllCreditCards().Count());
     _cardService.AddCreditCard(_creditCard);
     Assert.AreEqual(3, _cardService.GetAllCreditCards().Count());
 }