private void Run() { Zoo zoo = new Zoo(); byte[] tigerEnclosure = zoo.enclosureFactory.GetBytes(new TigerEnclosure(55)); zoo.AddEnclosure(tigerEnclosure); byte[] tiger1 = zoo.animalFactory.GetBytes(new Tiger(50)); byte[] tiger2 = zoo.animalFactory.GetBytes(new Tiger(60)); byte[] whale1 = zoo.animalFactory.GetBytes(new Whale(670.4f)); byte[] whale2 = zoo.animalFactory.GetBytes(new Whale(915.7f)); byte[] alien = zoo.animalFactory.GetBytes(new Alien("mars")); zoo.AddAnimal(tiger1); zoo.AddAnimal(tiger2); zoo.AddAnimal(whale1); zoo.AddAnimal(whale2); zoo.AddAnimal(alien); }