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()); }
public ActionResult Index() { List<Pet> allPets =Pets.GetAll(); return View(allPets) }
public ActionResult AllPets() { return(View(Pets.GetAll())); }