Example #1
0
        public Shelter(int capacityArg, IPetStorage myPetStorage, IAdoptionStorage myAdoptionStorage)
        {
            _petStorage      = myPetStorage;
            _adoptionStorage = myAdoptionStorage;

            //_numAdoptions = 0;
            _capacity = capacityArg;
        }
Example #2
0
 public Shelter(int capacityArg, IPetStorage myPetStorage)
 {
     _petStorage = myPetStorage;
     // Pass an IAdoptionStorage object into the constructor
     _adoptionList = new List <Adoption>();
     _numAdoptions = 0;
     _capacity     = capacityArg;
 }