Beispiel #1
0
 public ShippingService()
 {
     this.shipperRepo  = new ShipperRepository();
     this.shippingRepo = new ShippingInfoRepository();
     this.serviceRepo  = new DeliveryServiceRepository();
     this.cache        = MemoryCache.Default;
 }
Beispiel #2
0
 public ShippingService(IShipperRepository shipperRepository,
                        IShippingInfoRepository shippingRepository,
                        IDeliveryServiceRepository serviceRepository,
                        ObjectCache cache)
 {
     this.shippingRepo = shippingRepository;
     this.shipperRepo  = shipperRepository;
     this.serviceRepo  = serviceRepository;
     this.cache        = cache;
 }