Esempio n. 1
0
        public void AddAnimal()
        {
            string         aClass         = entryPage.getClass();
            string         order          = entryPage.getOrder();
            string         species        = entryPage.getSpecies();
            string         location       = entryPage.getLocation();
            Classification classification = new Classification(aClass, order, species);

            Animal animal = new Animal(classification);

            animal.Exhibit = location;
            store.AddAnimal(animal);

            entryPage.setTag(animal.ID);

            mainPage.showAnimals(store);
        }