// GET: B2B public B2BController(IAuthenticationService authenticationService, ICustomerApi customerRepository, IB2BApi b2bRepository, IOrderApi orderRepository) { _authenticationService = authenticationService; _customerRepository = customerRepository; _b2bRepository = b2bRepository; _orderRepository = orderRepository; }
public BasketController(IBasketApi basketApi, IShippingApi shippingApi, ICustomerApi customerRepository, IOrderApi orderRepository) { _basketApi = basketApi; _shippingApi = shippingApi; _customerRepository = customerRepository; _orderRepository = orderRepository; }
public FormsAuthenticationService(HttpContextBase httpContext, ICustomerApi customerRepository, ISessionApi sessionRepository) { _httpContext = httpContext; _expirationTimeSpan = FormsAuthentication.Timeout; _customerRepository = customerRepository; _sessionRepository = sessionRepository; }
//public const string ConfigType = "DomainSettings"; //public const string CurrencyKey = "DomainSettings-DefaultCurrencyCode"; //public const string LanguageKey = "DomainSettings-DefaultLanguageCulture"; //public const string CountryKey = "DomainSettings-CountryOfOrigin"; public SessionContext(HttpContextBase httpContext, IAuthenticationService authenticationService, ISessionApi sessionRepository, IConfigApi configRepository, ICustomerApi customerRepository) { _httpContext = httpContext; _authenticationService = authenticationService; _sessionRepository = sessionRepository; _configRepository = configRepository; _customerRepository = customerRepository; }
public CustomerService() { this.customerApi = new CustomerApi(); this.customerApiFallback = new CustomerApiFallback(); this.additionalProductApi = new AdditionalProductApi(); // registerfor SMS events this.customerApiFallback.SmsFailedEvent += this.SmsNotSend; this.customerApiFallback.SmsSentEvent += this.SmsSend; }
public AccountController(IAuthenticationService authenticationService, ICustomerApi customerRepository, IOrderApi orderRepository, IConfigApi configApi, IBasketApi basketApi, ISocialLoginService socialService) { _authenticationService = authenticationService; _customerRepository = customerRepository; _orderRepository = orderRepository; _configApi = configApi; _basketApi = basketApi; _socialService = socialService; }
// private readonly IPaymentMethod _paymentMethod; public CheckoutController(ICustomerApi customerApi, IConfigApi configApi, IPaymentApi paymentApi, ICheckoutApi checkoutApi, IOrderApi orderApi, IShippingApi shippingApi, IAuthenticationService authenticationService, ICustomerApi customerRepository, IB2BApi b2bRepository) { _customerApi = customerApi; _configApi = configApi; _paymentApi = paymentApi; _checkoutApi = checkoutApi; _orderApi = orderApi; _shippingApi = shippingApi; _authenticationService = authenticationService; _customerRepository = customerRepository; _b2bRepository = b2bRepository; }
public CustomerService(IOptions <ApplicationOption> appConfig, ICustomerApi api) { _ApplicationConfig = appConfig.Value ?? throw new ArgumentNullException(nameof(appConfig)); _CustomerApi = api ?? throw new ArgumentNullException(nameof(api)); }
public CustomerSearchService(ICustomerApi customerApi, IValidator <CustomerSearchRequest> validator) { _customerApi = customerApi; _validator = validator; }
public ShoppingCartApi(LocalApiContext context, ICustomerApi customerApi) { _customerApi = customerApi; _context = context; }
public CustomerController(ICustomerApi customerApi, IConfiguration configuration) { _customerApi = customerApi; _configuration = configuration; }