/// <summary>
 /// Initializes a new instance of the <see cref="CheckoutController"/> class.
 /// </summary>
 /// <param name="storeClient">The store client.</param>
 /// <param name="paymentClient">The payment client.</param>
 /// <param name="userClient">The user client.</param>
 /// <param name="countryClient">The country client.</param>
 /// <param name="orderClient">The order client.</param>
 /// <param name="paymentOptions">The payment options.</param>
 public CheckoutController(StoreClient storeClient,
                           PaymentClient paymentClient,
                           UserClient userClient,
                           CountryClient countryClient,
                           OrderClient orderClient,
                           IPaymentOption[] paymentOptions)
 {
     _storeClient = storeClient;
     _paymentClient = paymentClient;
     _userClient = userClient;
     _countryClient = countryClient;
     _orderClient = orderClient;
     _paymentOptions = paymentOptions;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AccountController" /> class.
 /// </summary>
 /// <param name="catalogClient">The catalog client.</param>
 /// <param name="userClient">The user client.</param>
 /// <param name="countryClient">The country client.</param>
 /// <param name="orderClient">The order client.</param>
 /// <param name="settingsClient">The settings client.</param>
 /// <param name="identitySecurity">The web security.</param>
 /// <param name="orderService">The order service.</param>
 public AccountController(CatalogClient catalogClient,
                          UserClient userClient,
                          CountryClient countryClient,
                          OrderClient orderClient,
                          SettingsClient settingsClient,
                          IdentityUserSecurity identitySecurity,
                          IOrderService orderService)
 {
     _catalogClient = catalogClient;
     _userClient = userClient;
     _countryClient = countryClient;
     _orderClient = orderClient;
     _settingsClient = settingsClient;
     _identitySecurity = identitySecurity;
     _orderService = orderService;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AccountController" /> class.
 /// </summary>
 /// <param name="catalogClient">The catalog client.</param>
 /// <param name="userClient">The user client.</param>
 /// <param name="countryClient">The country client.</param>
 /// <param name="orderClient">The order client.</param>
 /// <param name="settingsClient">The settings client.</param>
 /// <param name="webSecurity">The web security.</param>
 /// <param name="oAuthSecurity">The o authentication security.</param>
 /// <param name="orderService">The order service.</param>
 public AccountController(CatalogClient catalogClient,
                          UserClient userClient,
                          CountryClient countryClient,
                          OrderClient orderClient,
                          SettingsClient settingsClient,
                          IUserSecurity webSecurity,
                          IOAuthWebSecurity oAuthSecurity,
                          IOrderService orderService)
 {
     _catalogClient = catalogClient;
     _userClient = userClient;
     _countryClient = countryClient;
     _orderClient = orderClient;
     _settingsClient = settingsClient;
     _webSecurity = webSecurity;
     _oAuthSecurity = oAuthSecurity;
     _orderService = orderService;
 }
Example #4
0
 /// <summary>
 /// Cart controller constructor
 /// </summary>
 /// <param name="catalogClient">Catalog client used to access catalog repository methods through caching and other helpers</param>
 /// <param name="countryClient">Allows to get countries from repository through caching</param>
 public CartController(CatalogClient catalogClient, CountryClient countryClient)
 {
     _catalogClient = catalogClient;
     _countryClient = countryClient;
 }