public void CallCancelLabels(string[] trackingNumberList, ShipmentProviderType providerType) { var labelService = new LabelService(GetShipmentProviders(_company), _log, _time, _dbFactory, _emailService, _pdfMaker, AddressService.Default); foreach (var trackingNumber in trackingNumberList) { labelService.CancelLabel(providerType, trackingNumber, false); } }