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));
        }
Exemplo n.º 3
0
        public void TestSelectAll()
        {
            var animals     = service.SelectAll();
            var animalCount = animals.Count();

            // Assert
            Assert.Equal(2, animalCount);
        }