Ejemplo n.º 1
0
        protected ShippingProvider(int storeId, ShippingProviderType providerType)
        {
            this.storeId       = storeId;
            this.providerType  = providerType;
            this.ErrorMessages = new List <string>();

            shippingService = ShippingService.Find(storeId, providerType);
            if (shippingService == null)
            {
                throw new ApplicationException(string.Format("Unable to find ShippingService for ProviderType '{0}'", providerType));
            }
            this.settings = shippingService.GetSettingsDictionary();
        }