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; }
public RentedBikeService(IIncomeCalculator calculator, Dictionary <string, RentedBike> rentedBikes, IList <RentedBike> rentedBikesHistory) { _incomeCalculator = calculator; _rentedBikes = rentedBikes; _rentedBikesHistory = rentedBikesHistory; }
public RentedBikeService(IIncomeCalculator calculator) { _incomeCalculator = calculator; }
public IncomeCalculatorTests() { _incomeCalculator = new IncomeCalculator(_bikeMaxPrice); }