예제 #1
0
        public void RemoveSportTest()
        {
            repo.Delete(rugby.Name);

            IEnumerable <Sport> actual   = repo.GetAll();
            IEnumerable <Sport> expected = new List <Sport> {
                futbol
            };

            Assert.IsTrue(Helper.CollectionsHaveSameElements(actual, expected));
        }
예제 #2
0
 public IActionResult Delete(int id)
 {
     _sportRepository.Delete(id);
     return(RedirectToAction("Index"));
 }