private int GetCleaningCharges(IRentable rentable) { var cleaningChargesCalculatingVisitor = new CleanChargesCalculatingVisitor(); return(rentable.Visit(cleaningChargesCalculatingVisitor)); }
private int GetWaterCharges(IRentable rentable) { var waterChargesCalculatingVisitor = new WaterChargesCalculatingVisitor(); return(rentable.Visit(waterChargesCalculatingVisitor)); }
private int GetElectricityCharges(IRentable rentable) { var electricityChargesCalculatingVisitor = new ElectricityChargesCalculatingVisitor(); return(rentable.Visit(electricityChargesCalculatingVisitor)); }
private int GetRentingCharges(IRentable rentable) { var rentingCalculatingVisitor = new RentCalculatingVisitor(); return(rentable.Visit(rentingCalculatingVisitor)); }