public House( IElectricityService electricityService, IWaterService waterService, IInternetService internetService, ICleaningService cleaningService, ISanitationService sanitationService) { this.electricityService = electricityService; this.waterService = waterService; this.internetService = internetService; this.cleaningService = cleaningService; this.sanitationService = sanitationService; services = new Dictionary <HouseService, IHouseHoldService>(); this.services.Add(HouseService.Electricity, this.electricityService); this.services.Add(HouseService.Water, this.waterService); this.services.Add(HouseService.Internet, this.internetService); this.services.Add(HouseService.Cleaning, this.cleaningService); this.services.Add(HouseService.Sanitation, this.sanitationService); }
public ElectricityController(IElectricityService electricityService) { _electricityService = electricityService; }
public PaymentController(IMobileRechargeService mobileRechargeService, IPaymentService paymentService, IElectricityService electricityService) { _mobileRechargeService = mobileRechargeService; _paymentService = paymentService; _electricityService = electricityService; }
public ElectricityEventHandler(IElectricityService electricityService) { _electricityService = electricityService; }
public ElectricityController(IElectricityService electricityService, IUtilitesService utilityService) { this._electricityService = electricityService; this._utilityService = utilityService; }