Example #1
0
        public ActionResult AllPets(string petName)
        {
            Pets newPet = new Pets();

            newPet.SetName(petName);
            return(View(Pets.GetAll()));
            //return new EmptyResult();
        }
        public void AddGetPets_AddGetList_List()
        {
            Pets newPet = new Pets();

            Pets newPet02 = new Pets();

            List <Pets> compare = new List <Pets>()
            {
                newPet, newPet02
            };

            CollectionAssert.AreEqual(compare, Pets.GetAll());
        }
Example #3
0
 public ActionResult Index()
 {
   List<Pet> allPets =Pets.GetAll();
   return View(allPets)
 }
Example #4
0
 public ActionResult AllPets()
 {
     return(View(Pets.GetAll()));
 }