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())); }
public ParkingController() { parkingProcessor = new ParkingProcessor(new ParkingRepo(), new CarRepo()); paymentProcessor = new PaymentProcessor(new ParkingRepo(), new CarRepo()); }