public AnimalCentre()
 {
     this.af             = new AnimalFactory();
     this.chip           = new Chip();
     this.dentalCare     = new DentalCare();
     this.fitness        = new Fitness();
     this.nailTrim       = new NailTrim();
     this.play           = new Play();
     this.vaccinate      = new Vaccinate();
     this.hotel          = new Hotel();
     this.adoptedAnimals = new Dictionary <string, string>();
 }
Example #2
0
        public AnimalCentre()
        {
            this.hotel   = new Hotel();
            this.factory = new AnimalFactory();
            this.chip    = new Chip();
            this.care    = new DentalCare();
            this.fitness = new Fitness();
            this.trim    = new NailTrim();
            this.play    = new Play();
            this.vac     = new Vaccinate();

            this.procedures = new List <Procedure>()
            {
                chip, care, fitness, trim, play, vac
            };

            this.allAddoptedAnimals = new Dictionary <string, List <string> >();
        }
        public static void Main()
        {
            var hotel            = new Hotel();
            var animalFactory    = new AnimalFactory();
            var procedureFactory = new ProcedureFactory();

            var animalCentre = new AnimalCentre(
                hotel,
                animalFactory,
                procedureFactory);

            var commandParser = new CommandParser();
            var dataWriter    = new ConsoleDataWriter();
            var dataReader    = new ConsoleDataReader();

            var engine = new Engine(
                animalCentre,
                commandParser,
                dataReader,
                dataWriter);

            engine.Run();
        }