Exemplo n.º 1
0
        public ParkingTransaction CalculateParkingRate(Patron patron)
        {
            ParkingRateCode parkingRateCode = _parkingRateDecisionTree.Evaluate(patron);
            var             rate            = _repository.GetParkingRate(parkingRateCode);

            return(new ParkingTransaction(patron, rate));
        }
        public Type ReturnCorrectParkingObjectByCode(ParkingRateCode code)
        {
            var rate = _repo.GetParkingRate(code);

            return(rate.GetType());
        }