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)); }
public IActionResult Delete(int id) { _sportRepository.Delete(id); return(RedirectToAction("Index")); }