public ParkingController(IParkingRepo repo, IMapper mapper, IActionDescriptorCollectionProvider provider) : base(provider) { this.repo = repo; this.mapper = mapper; }
public ParkingLotController(IParkingRepo <ParkingLot> parkinglotRepository) { _parkingLotRepository = parkinglotRepository; }
public PaymentProcessor(IParkingRepo _pRepo, ICarRepo _cRepo) { this.pRepo = _pRepo ?? new ParkingRepo(); //this would be resolved by using IoC container. For now, keeping it simple this.cRepo = _cRepo ?? new CarRepo(); }
public ParkingController(IParkingProcessor _pProcessor, IPaymentProcessor _payProcessor, IParkingRepo _pRepo, ICarRepo _cRepo) { parkingProcessor = _pProcessor ?? (new ParkingProcessor(_pRepo ?? new ParkingRepo(), _cRepo ?? new CarRepo())); paymentProcessor = _payProcessor ?? (new PaymentProcessor(_pRepo ?? new ParkingRepo(), _cRepo ?? new CarRepo())); }