Exemple #1
0
 public AssessRentCommand(IPlayer player, IProperty property, IRentCalculator rentCalculator, IPaymentCommandFactory paymentCommandFactory)
 {
     _player                = player;
     _property              = property;
     _rentCalculator        = rentCalculator;
     _paymentCommandFactory = paymentCommandFactory;
 }
Exemple #2
0
 public RentalCompany(string name, IScooterService scooterService, IRentCalculator calculator,
                      IRideService rideService)
 {
     Name            = name;
     _calculator     = calculator;
     _scooterService = scooterService;
     _rideService    = rideService;
 }
 public RideService(IRentCalculator calculator, Dictionary <string, Ride> activeRides, List <Ride> rideHistory)
 {
     _calculator  = calculator;
     _activeRides = activeRides;
     _rideHistory = rideHistory;
 }
 public RideService(IRentCalculator calculator)
 {
     _calculator = calculator;
 }
Exemple #5
0
 public LandOnPropertyCommandFactory(IProperty property, IRentCalculator rentCalculator, IPaymentCommandFactory paymentCommandFactory)
 {
     _property              = property;
     _rentCalculator        = rentCalculator;
     _paymentCommandFactory = paymentCommandFactory;
 }
 public RentCalculatorTests()
 {
     _calculator = new RentCalculator(maxPrice);
 }