public ShippingService() { this.shipperRepo = new ShipperRepository(); this.shippingRepo = new ShippingInfoRepository(); this.serviceRepo = new DeliveryServiceRepository(); this.cache = MemoryCache.Default; }
public ShippingService(IShipperRepository shipperRepository, IShippingInfoRepository shippingRepository, IDeliveryServiceRepository serviceRepository, ObjectCache cache) { this.shippingRepo = shippingRepository; this.shipperRepo = shipperRepository; this.serviceRepo = serviceRepository; this.cache = cache; }
public TrackingNumberService(ITrackingNumberInfoRepository trackingNumberInfoRepository, ITrackingNumberDetailInfoRepository trackingNumberDetailInfoRepository, IWayBillInfoRepository wayBillInfoRepository, IWorkContext workContext, ICountryRepository countryRepository, IShippingInfoRepository shippingInfoRepository) { _trackingNumberInfoRepository = trackingNumberInfoRepository; _trackingNumberDetailInfoRepository = trackingNumberDetailInfoRepository; _wayBillInfoRepository = wayBillInfoRepository; _workContext = workContext; _countryRepository = countryRepository; _shippingInfoRepository = shippingInfoRepository; AddDisposableObject(trackingNumberInfoRepository, trackingNumberDetailInfoRepository, wayBillInfoRepository, workContext); }