Exemplo n.º 1
0
        public void DeleteConfirmed()
        {
            ITamagotchiRepository tamagotchiRepository  = new DummyTamagotchiRepository();
            TamagotchisController tamagotchisController = new TamagotchisController(tamagotchiRepository);
            TamagotchiModel       subject = tamagotchiRepository.Get(2);

            tamagotchisController.DeleteConfirmed(2);

            Assert.IsTrue(!tamagotchiRepository.GetAll().Contains(subject));
        }