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; }