Exemplo n.º 1
0
        // GET: B2B

        public B2BController(IAuthenticationService authenticationService, ICustomerApi customerRepository, IB2BApi b2bRepository, IOrderApi orderRepository)
        {
            _authenticationService = authenticationService;
            _customerRepository    = customerRepository;
            _b2bRepository         = b2bRepository;
            _orderRepository       = orderRepository;
        }
Exemplo n.º 2
0
        public BasketController(IBasketApi basketApi, IShippingApi shippingApi, ICustomerApi customerRepository, IOrderApi orderRepository)

        {
            _basketApi          = basketApi;
            _shippingApi        = shippingApi;
            _customerRepository = customerRepository;
            _orderRepository    = orderRepository;
        }
Exemplo n.º 3
0
        public FormsAuthenticationService(HttpContextBase httpContext, ICustomerApi customerRepository, ISessionApi sessionRepository)
        {
            _httpContext = httpContext;

            _expirationTimeSpan = FormsAuthentication.Timeout;
            _customerRepository = customerRepository;
            _sessionRepository  = sessionRepository;
        }
Exemplo n.º 4
0
        //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;
        }
Exemplo n.º 5
0
        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;
        }
Exemplo n.º 8
0
 public CustomerService(IOptions <ApplicationOption> appConfig,
                        ICustomerApi api)
 {
     _ApplicationConfig = appConfig.Value ?? throw new ArgumentNullException(nameof(appConfig));
     _CustomerApi       = api ?? throw new ArgumentNullException(nameof(api));
 }
Exemplo n.º 9
0
 public CustomerSearchService(ICustomerApi customerApi, IValidator <CustomerSearchRequest> validator)
 {
     _customerApi = customerApi;
     _validator   = validator;
 }
Exemplo n.º 10
0
 public ShoppingCartApi(LocalApiContext context, ICustomerApi customerApi)
 {
     _customerApi = customerApi;
     _context = context;
 }
Exemplo n.º 11
0
        public CustomerController(ICustomerApi customerApi, IConfiguration configuration)
        {
            _customerApi = customerApi;

            _configuration = configuration;
        }
Exemplo n.º 12
0
 public ShoppingCartApi(LocalApiContext context, ICustomerApi customerApi)
 {
     _customerApi = customerApi;
     _context     = context;
 }