public CachingService(BrandBucket brandBucket , CountryBucket countryBucket , CurrencyBucket currencyBucket , GatewayBucket gatewayBucket , SourceMarketBucket sourceMarketBucket , TourOperatorBucket tourOperatorBucket , HotelBucket hotelBucket) { this.brandBucket = brandBucket; this.countryBucket = countryBucket; this.currencyBucket = currencyBucket; this.gatewayBucket = gatewayBucket; this.sourceMarketBucket = sourceMarketBucket; this.tourOperatorBucket = tourOperatorBucket; this.hotelBucket = hotelBucket; }
public CustomerService(CountryBucket countryBucket, SourceMarketBucket sourceMarketBucket) { this.countryBucket = countryBucket; this.sourceMarketBucket = sourceMarketBucket; if (this.countryBucket.Items == null || this.countryBucket.Items.Count == 0) { this.countryBucket.FillBucket(); } if (this.sourceMarketBucket.Items == null || this.sourceMarketBucket.Items.Count == 0) { this.sourceMarketBucket.FillBucket(); } }
public BookingService(BrandBucket brandBucket , CountryBucket countryBucket , CurrencyBucket currencyBucket , GatewayBucket gatewayBucket , SourceMarketBucket sourceMarketBucket , TourOperatorBucket tourOperatorBucket , HotelBucket hotelBucket) { this.brandBucket = brandBucket; this.countryBucket = countryBucket; this.currencyBucket = currencyBucket; this.gatewayBucket = gatewayBucket; this.sourceMarketBucket = sourceMarketBucket; this.tourOperatorBucket = tourOperatorBucket; this.hotelBucket = hotelBucket; if (this.brandBucket.Items == null || this.brandBucket.Items.Count == 0) { this.brandBucket.FillBucket(); } if (this.countryBucket.Items == null || this.countryBucket.Items.Count == 0) { this.countryBucket.FillBucket(); } if (this.currencyBucket.Items == null || this.currencyBucket.Items.Count == 0) { this.currencyBucket.FillBucket(); } if (this.gatewayBucket.Items == null || this.gatewayBucket.Items.Count == 0) { this.gatewayBucket.FillBucket(); } if (this.sourceMarketBucket.Items == null || this.sourceMarketBucket.Items.Count == 0) { this.sourceMarketBucket.FillBucket(); } if (this.tourOperatorBucket.Items == null || this.tourOperatorBucket.Items.Count == 0) { this.tourOperatorBucket.FillBucket(); } if (this.hotelBucket.Items == null || this.hotelBucket.Items.Count == 0) { this.hotelBucket.FillBucket(); } }