public SupportController(ICheckoutIntegrationCommand checkoutIntegrationCommand, IPostSubmitCommand postSubmitCommand, IZohoCommand zoho, IOrderCloudClient oc, ISupportAlertService supportAlertService, ISendgridService sendgrid)
 {
     _checkoutIntegrationCommand = checkoutIntegrationCommand;
     _postSubmitCommand          = postSubmitCommand;
     _oc       = oc;
     _sendgrid = sendgrid;
 }
示例#2
0
 public RMACommand(IOrderCloudClient oc, IRMARepo rmaRepo, IOrderCloudIntegrationsCardConnectService cardConnect, ISendgridService sendgridService)
 {
     _oc              = oc;
     _rmaRepo         = rmaRepo;
     _cardConnect     = cardConnect;
     _sendgridService = sendgridService;
 }
示例#3
0
 public IndexController(IIdentityService identityService, ICategoryService categoryService, ISendgridService sendgridService, ITokenReaderService tokenReaderService)
 {
     _identityService    = identityService;
     _categoryService    = categoryService;
     _sendgridService    = sendgridService;
     _tokenReaderService = tokenReaderService;
 }
示例#4
0
 public LineItemCommand(ISendgridService sendgridService, IOrderCloudClient oc, IMeProductCommand meProductCommand, IPromotionCommand promotionCommand, TelemetryClient telemetry)
 {
     _oc = oc;
     _sendgridService  = sendgridService;
     _meProductCommand = meProductCommand;
     _promotionCommand = promotionCommand;
     _telemetry        = telemetry;
 }
示例#5
0
        public void Setup()
        {
            _oc             = Substitute.For <IOrderCloudClient>();
            _settings       = Substitute.For <AppSettings>();
            _sendGridClient = Substitute.For <ISendGridClient>();

            _command = new SendgridService(_settings, _oc, _sendGridClient);
        }
 //////////////////////////////////
 public UserBaseController(IUserBaseService userBaseService, IUserService userService, ISendgridService sendgridService, IErrorLogService errorLogService, IGmailService gmailService, IEmailTemplate emailTemplate)
 {
     _userBaseService = userBaseService;
     _userService     = userService;
     _sendgridService = sendgridService;
     _gmailService    = gmailService;
     _errorLogService = errorLogService;
     _emailTemplate   = emailTemplate;
 }
示例#7
0
 public OrderController(IOrderRepository orderRepository, IProductRepository productRepository, IDotPayService dotPayService,
                        IPurchaseSettingsRepository purchaseSettingsRepository, ISendgridService sendgridService)
 {
     this.orderRepository            = orderRepository;
     this.productRepository          = productRepository;
     this.dotPayService              = dotPayService;
     this.purchaseSettingsRepository = purchaseSettingsRepository;
     this.sendgridService            = sendgridService;
 }
 public WebhooksController(
     AppSettings settings,
     ISendgridService sendgridService,
     ResourceHistoryQuery <ProductHistory> productQuery,
     ResourceHistoryQuery <PriceScheduleHistory> priceScheduleQuery,
     IOrderCloudClient orderCloud) : base(settings)
 {
     _settings           = settings;
     _sendgridService    = sendgridService;
     _productQuery       = productQuery;
     _priceScheduleQuery = priceScheduleQuery;
     _oc = orderCloud;
 }
示例#9
0
 public IdentityService(UserManager <User> userManager,
                        SignInManager <User> signInManager,
                        ISendgridService sendgridService,
                        IOptions <AppSettings> appSettings,
                        IRefreshTokenService refreshTokenService,
                        IImageService imageService)
 {
     _userManager         = userManager;
     _signInManager       = signInManager;
     _sendgridService     = sendgridService;
     _appSettings         = appSettings.Value;
     _refreshTokenService = refreshTokenService;
     _imageService        = imageService;
 }
示例#10
0
 public MeProductCommand(
     IOrderCloudClient elevatedOc,
     IHSBuyerCommand hsBuyerCommand,
     IHSProductCommand hsProductCommand,
     ISendgridService sendgridService,
     IAppCache cache
     )
 {
     _oc               = elevatedOc;
     _hsBuyerCommand   = hsBuyerCommand;
     _hsProductCommand = hsProductCommand;
     _sendgridService  = sendgridService;
     _cache            = cache;
 }
示例#11
0
 public PostSubmitCommand(
     ISendgridService sendgridService,
     IAvalaraCommand avatax,
     IOrderCloudClient oc,
     IZohoCommand zoho,
     ILineItemCommand lineItemCommand,
     AppSettings settings
     )
 {
     _oc              = oc;
     _avalara         = avatax;
     _zoho            = zoho;
     _sendgridService = sendgridService;
     _lineItemCommand = lineItemCommand;
     _settings        = settings;
 }
示例#12
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;
 }
示例#13
0
 public PostSubmitCommand(
     ISendgridService sendgridService,
     ITaxCalculator taxCalculator,
     IOrderCloudClient oc,
     IZohoCommand zoho,
     ILineItemCommand lineItemCommand,
     AppSettings settings
     )
 {
     _oc              = oc;
     _taxCalculator   = taxCalculator;
     _zoho            = zoho;
     _sendgridService = sendgridService;
     _lineItemCommand = lineItemCommand;
     _settings        = settings;
 }
示例#14
0
        public ProductUpdateCommand(
            IOrderCloudClient oc,
            ResourceHistoryQuery <ProductHistory> productQuery,
            ResourceHistoryQuery <PriceScheduleHistory> priceScheduleQuery,
            AppSettings settings,
            ISendgridService sendGrid)
        {
            var blobService = new OrderCloudIntegrationsBlobService(new BlobServiceConfig()
            {
                ConnectionString = settings.BlobSettings.ConnectionString,
                Container        = "productupdates",
                AccessType       = BlobContainerPublicAccessType.Off
            });

            _productQuery       = productQuery;
            _priceScheduleQuery = priceScheduleQuery;
            _oc              = oc;
            _container       = blobService.Container;
            _sendgridService = sendGrid;
        }
示例#15
0
 public UserService(IUserRepository userRepository, ISendgridService sendgridService, ILogger <UserService> logger)
 {
     _userRepository  = userRepository;
     _sendgridService = sendgridService;
     _logger          = logger;
 }
 public WebPageController(IRiotApiService riotApiService, ISendgridService sendgridService)
 {
     this.riotApiService  = riotApiService ?? throw new ArgumentNullException(nameof(riotApiService));
     this.sendgridService = sendgridService ?? throw new ArgumentNullException(nameof(sendgridService));
 }
 public MessageSendersController(ISendgridService sendgridService, IOrderCommand orderCommand)
 {
     _sendgridService = sendgridService;
     _orderCommand    = orderCommand;
 }
示例#18
0
 public SupportAlertService(TelemetryClient telemetry, ISendgridService sendgrid, AppSettings settings)
 {
     _telemetry = telemetry;
     _sendgrid  = sendgrid;
     _settings  = settings;
 }