예제 #1
0
 public RentalCompany(string name, IBikeService service, IIncomeCalculator calculator, IRentedBikeService rentedService)
 {
     if (string.IsNullOrEmpty(name))
     {
         throw new RentalCompanyNotNullException();
     }
     Name               = name;
     _service           = service;
     _calculator        = calculator;
     _rentedBikeService = rentedService;
 }
예제 #2
0
 public RentedBikeService(IIncomeCalculator calculator, Dictionary <string, RentedBike> rentedBikes, IList <RentedBike> rentedBikesHistory)
 {
     _incomeCalculator   = calculator;
     _rentedBikes        = rentedBikes;
     _rentedBikesHistory = rentedBikesHistory;
 }
예제 #3
0
 public RentedBikeService(IIncomeCalculator calculator)
 {
     _incomeCalculator = calculator;
 }
예제 #4
0
 public IncomeCalculatorTests()
 {
     _incomeCalculator = new IncomeCalculator(_bikeMaxPrice);
 }