Esempio n. 1
0
 public void TransferAnimalToZoo(ZooGarden sourceGarden, ZooGarden destinationGardenGarden)
 {
     destinationGardenGarden.AddAnimal(sourceGarden.GetAnimals());
     sourceGarden.RemoveAnimal();
 }
Esempio n. 2
0
 public void TransferAnimalToZoo(IAnimal animal, ZooGarden sourceGarden, ZooGarden destinationGardenGarden)
 {
     sourceGarden.RemoveAnimal(animal);
     destinationGardenGarden.AddAnimal(animal);
 }
Esempio n. 3
0
 public void TransferAnimalToZoo(List <IAnimal> animals, ZooGarden sourceGarden, ZooGarden destinationGardenGarden)
 {
     sourceGarden.RemoveAnimal(animals);
     destinationGardenGarden.AddAnimal(animals);
 }