public EnvironmentSeedCommand(
            AppSettings settings,
            IPortalService portal,
            IHSSupplierCommand supplierCommand,
            IHSBuyerCommand buyerCommand,
            IHSBuyerLocationCommand buyerLocationCommand,
            IOrderCloudClient oc,
            IExchangeRatesCommand exhangeRates
            )
        {
            _settings             = settings;
            _portal               = portal;
            _supplierCommand      = supplierCommand;
            _buyerCommand         = buyerCommand;
            _buyerLocationCommand = buyerLocationCommand;
            _oc           = oc;
            _exhangeRates = exhangeRates;
            var translationsConfig = new BlobServiceConfig()
            {
                ConnectionString = _settings.BlobSettings.ConnectionString,
                Container        = _settings.BlobSettings.ContainerNameTranslations
            };

            _translationsBlob = new OrderCloudIntegrationsBlobService(translationsConfig);
        }
 public MeProductCommand(
     IOrderCloudClient elevatedOc,
     IHSBuyerCommand hsBuyerCommand,
     IHSProductCommand hsProductCommand,
     ISendgridService sendgridService,
     IAppCache cache
     )
 {
     _oc               = elevatedOc;
     _hsBuyerCommand   = hsBuyerCommand;
     _hsProductCommand = hsProductCommand;
     _sendgridService  = sendgridService;
     _cache            = cache;
 }
 public EnvironmentSeedCommand(
     AppSettings settings,
     IPortalService portal,
     IHSSupplierCommand supplierCommand,
     IHSBuyerCommand buyerCommand,
     IHSBuyerLocationCommand buyerLocationCommand,
     IOrderCloudClient oc
     )
 {
     _portal               = portal;
     _supplierCommand      = supplierCommand;
     _buyerCommand         = buyerCommand;
     _buyerLocationCommand = buyerLocationCommand;
     _oc       = oc;
     _settings = settings;
 }
Beispiel #4
0
 public MeProductCommand(
     IOrderCloudClient elevatedOc,
     IHSBuyerCommand hsBuyerCommand,
     IHSProductCommand hsProductCommand,
     ISendgridService sendgridService,
     ISimpleCache cache,
     IExchangeRatesCommand exchangeRatesCommand
     )
 {
     _oc                   = elevatedOc;
     _hsBuyerCommand       = hsBuyerCommand;
     _hsProductCommand     = hsProductCommand;
     _sendgridService      = sendgridService;
     _cache                = cache;
     _exchangeRatesCommand = exchangeRatesCommand;
 }
 public EnvironmentSeedCommand(
     AppSettings settings,
     IPortalService portal,
     IHeadstartSupplierCommand supplierCommand,
     IHSBuyerCommand buyerCommand,
     ICMSClient cms,
     IOrderCloudClient oc
     )
 {
     _settings        = settings;
     _portal          = portal;
     _supplierCommand = supplierCommand;
     _buyerCommand    = buyerCommand;
     _cms             = cms;
     _oc = oc;
 }
Beispiel #6
0
 public BuyerController(IHSBuyerCommand command, IOrderCloudClient oc)
 {
     _command = command;
     _oc      = oc;
 }
Beispiel #7
0
 public BuyerController(IHSBuyerCommand command, IOrderCloudClient oc, AppSettings settings) : base(settings)
 {
     _command = command;
     _oc      = oc;
 }