public void TestSelectAll() { ServiceSeeder.Seed(service); var animals = service.SelectAll(); var animalCount = animals.Count(); Assert.Equal(6, animalCount); }
public IActionResult Index() { List <Animals> animal = (List <Animals>)service.SelectAll(); return(View(animal)); }
public void TestSelectAll() { var animals = service.SelectAll(); var animalCount = animals.Count(); // Assert Assert.Equal(2, animalCount); }