public void SetBuryGetIsBuried_GetsSetsBuried_True()
        {
            TamagotchiPet pet = new TamagotchiPet("Tan");

            pet.Bury();
            Assert.AreEqual(true, pet.IsBuried());
        }
Beispiel #2
0
        public ActionResult BuryPet(int id)
        {
            TamagotchiPet pet = TamagotchiPet.Find(id);

            pet.Bury();
            List <TamagotchiPet> allPets = TamagotchiPet.GetAll();

            return(View("DisplayPetData", allPets));
        }