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