public CartsController(
     ICartsService cartsService,
     ILogger <CartsController> logger)
 {
     _cartsService = cartsService;
     _logger       = logger;
 }
Ejemplo n.º 2
0
 public CartController(ICartsService cartsService, UserManager <IdentityUser> userManager, CodeViewModel code, SignInManager <IdentityUser> signInManager)
 {
     _cartsService  = cartsService;
     _userManager   = userManager;
     _code          = code;
     _signInManager = signInManager;
 }
Ejemplo n.º 3
0
        public CreditCardController(ApplicationDbContext context, ICartsService service, UserManager <User> userManager)

        {
            _context     = context;
            _service     = service;
            _userManager = userManager;
        }
 public ProductsListComponent(IProductsService productsService, ICartsService cartsService,
                              IToastrService toastrService)
 {
     _productsService = productsService;
     _cartsService    = cartsService;
     _toastrService   = toastrService;
 }
Ejemplo n.º 5
0
 public OrdersController(
     ICartsService cartsService, IProductsService productService, UserManager <ApplicationUser> userManager)
 {
     this.cartsService   = cartsService;
     this.userManager    = userManager;
     this.productService = productService;
 }
Ejemplo n.º 6
0
 public CartsController(ApplicationDbContext context, ICartsService service, SignInManager <User> signInManager, UserManager <User> userManager)
 {
     _context       = context;
     _service       = service;
     _signInManager = signInManager;
     _userManager   = userManager;
 }
Ejemplo n.º 7
0
 public OrdersController(IProductsService prodService, IOrdersService orderService, ICartsService cartsService, IOrderDetailsService orderDetailsService)
 {
     _prodService        = prodService;
     _orderService       = orderService;
     _cartService        = cartsService;
     _orderDetailService = orderDetailsService;
 }
Ejemplo n.º 8
0
 public CartController(IProductsService productsService, IOrdersService Order, ICartsItemService CartItemService, ICartsService cartService, IOrderDetailsService OrderDetail)
 {
     _productsService  = productsService;
     _cartItemsService = CartItemService;
     _cartService      = cartService;
     _OrderService     = Order;
     _OrderDetail      = OrderDetail;
 }
Ejemplo n.º 9
0
 public CartsController(IMapper mapper, ICartLinesService serviceCartLines, IAuthService authService,
                        ICartsService serviceCarts)
 {
     _mapper           = mapper;
     _serviceCartLines = serviceCartLines;
     _authService      = authService;
     _serviceCarts     = serviceCarts;
 }
 public CartsController(ICartsService cartsService, IOrdersService ordersService,
                        IOrderDetailsService orderDetailsService, ILogger <HomeController> logger)
 {
     _cartsService        = cartsService;
     _ordersService       = ordersService;
     _orderDetailsService = orderDetailsService;
     _logger = logger;
 }
Ejemplo n.º 11
0
 public OrderDetailsService(IOrderDetailsRepository orderDetailsRepo, IOrdersRepository orderRepo,
                            ICartsService cartsService, IProductsService productService)
 {
     _orderDetailsRepo = orderDetailsRepo;
     _orderRepo        = orderRepo;
     _cartService      = cartsService;
     _productService   = productService;
 }
Ejemplo n.º 12
0
 public CartsController(ICartsService cartsService, IOrdersService ordersService, IProductsService productsService, IHostingEnvironment env, ILogger <CartsController> logger)
 {
     _cartsService    = cartsService;
     _ordersService   = ordersService;
     _productsService = productsService;
     _logger          = logger;
     _env             = env;
 }
Ejemplo n.º 13
0
 public CartController(IProductsService productsService, ICartsService cartsService, ICartItemsService cartItemsService,
                       IWebHostEnvironment env)
 {
     _productsService  = productsService;
     _cartsService     = cartsService;
     _cartItemsService = cartItemsService;
     _env = env;
 }
Ejemplo n.º 14
0
 public PlaceOrderCommandHandler(ICartsService cartsService, OrdersContext ordersContext, IBus bus, IPaymentService paymentService, IShippingService shippingService)
 {
     _cartsService    = cartsService;
     _ordersContext   = ordersContext;
     _bus             = bus;
     _paymentService  = paymentService;
     _shippingService = shippingService;
 }
Ejemplo n.º 15
0
 public ProductsController(IProductsService productsService, ICartsService cartsService,
                           ICategoriesService categoriesService, IWebHostEnvironment environment, ILogger <HomeController> logger)
 {
     _productsService   = productsService;
     _categoriesService = categoriesService;
     _cartsService      = cartsService;
     _environment       = environment;
     _logger            = logger;
 }
Ejemplo n.º 16
0
 public CheckoutItemsViewComponent(
     IOrdersService ordersService,
     IUsersService usersService,
     ICartsService cartsService)
 {
     this.ordersService = ordersService;
     this.usersService  = usersService;
     this.cartsService  = cartsService;
 }
Ejemplo n.º 17
0
 public ProductsController(IProductsService productsService, ICategoriesService categoriesService, ICartsService cartsService, IOrdersService ordersService, ILogger <ProductsController> logger,
                           IWebHostEnvironment env)
 {
     _ordersService     = ordersService;
     _cartsService      = cartsService;
     _productsService   = productsService;
     _categoriesService = categoriesService;
     _env            = env;
     _productsLogger = logger;
 }
Ejemplo n.º 18
0
 public OrdersController(
     ICartsService cartsService,
     IUsersService usersService,
     IOrdersService ordersService,
     IReceiptsService receiptsService)
 {
     this.cartsService    = cartsService;
     this.usersService    = usersService;
     this.ordersService   = ordersService;
     this.receiptsService = receiptsService;
 }
Ejemplo n.º 19
0
 public RegisterModel(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     ILogger <RegisterModel> logger,
     IEmailSender emailSender,
     ICartsService cartsService)
 {
     _userManager      = userManager;
     _signInManager    = signInManager;
     _logger           = logger;
     _emailSender      = emailSender;
     this.cartsService = cartsService;
 }
Ejemplo n.º 20
0
 public RegisterModel(
     UserManager <IdentityUser> userManager,
     SignInManager <IdentityUser> signInManager,
     ILogger <RegisterModel> logger,
     IEmailSender emailSender,
     IMembersService membersService,
     ICartsService cartsService)
 {
     _userManager    = userManager;
     _signInManager  = signInManager;
     _logger         = logger;
     _emailSender    = emailSender;
     _membersService = membersService;
     _cartsService   = cartsService;
 }
Ejemplo n.º 21
0
 public StoreController(
     IItemsService itemsService,
     ICartItemsService cartItemsService,
     ICartsService cartsService,
     IOrdersService ordersService,
     IOrderItemsService orderItemsService,
     UserManager <ApplicationUser> userManager)
 {
     this.itemsService      = itemsService;
     this.cartItemsService  = cartItemsService;
     this.cartsService      = cartsService;
     this.ordersService     = ordersService;
     this.orderItemsService = orderItemsService;
     this.userManager       = userManager;
 }
Ejemplo n.º 22
0
 public RegisterModel(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     ILogger <RegisterModel> logger,
     IEmailSender emailSender,
     ICartsService cartsServices,
     ITripsService tripsServices,
     ApplicationDbContext db)
 {
     this.userManager   = userManager;
     this.signInManager = signInManager;
     this.logger        = logger;
     this.emailSender   = emailSender;
     this.cartsServices = cartsServices;
     this.db            = db;
 }
Ejemplo n.º 23
0
 public RegisterModel(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     ILogger <RegisterModel> logger,
     IEmailSender emailSender,
     IConfiguration configuration,
     IWebHostEnvironment hostingEnvironment,
     ICartsService cartsService,
     IFollowService followService)
 {
     this._userManager       = userManager;
     this._signInManager     = signInManager;
     this._logger            = logger;
     this._emailSender       = emailSender;
     this.configuration      = configuration;
     this.hostingEnvironment = hostingEnvironment;
     this.cartsService       = cartsService;
     this.followService      = followService;
     this._userManager.Options.SignIn.RequireConfirmedAccount = true;
 }
Ejemplo n.º 24
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CartsServiceTest"/> class.
        /// </summary>
        public CartsServiceTest()
        {
            var serviceLocator = Substitute.For <IEngine>();

            EngineContext.Replace(serviceLocator);

            this.customerService              = Substitute.For <ICustomerService>();
            this.productService               = Substitute.For <IProductService>();
            this.shoppingCartService          = Substitute.For <IShoppingCartService>();
            this.orderTotalCalculationService = Substitute.For <IOrderTotalCalculationService>();

            serviceLocator.Resolve <ICustomerService>().Returns(this.customerService);
            serviceLocator.Resolve <IProductService>().Returns(this.productService);
            serviceLocator.Resolve <IShoppingCartService>().Returns(this.shoppingCartService);
            serviceLocator.Resolve <IOrderTotalCalculationService>().Returns(this.orderTotalCalculationService);

            this.cartService = new CartsService();

            this.shoppingCartItem = new ShoppingCartItem
            {
                Id = 1050,
                ShoppingCartType = ShoppingCartType.ShoppingCart,
                ProductId        = 1051,
                Product          = new Product {
                    Price = 12.55m, Id = 100500
                },
                Quantity = 2,
                StoreId  = 100500
            };

            this.customerGuid = Guid.NewGuid();

            this.customer = new Customer {
                CustomerGuid = this.customerGuid, Id = 111222
            };
            this.customer.ShoppingCartItems.Add(this.shoppingCartItem);
            this.customer.ShoppingCartItems.Add(new ShoppingCartItem {
                Id = 9999, ShoppingCartType = ShoppingCartType.Wishlist
            });
        }
 public TotalPriceViewComponent(ICartsService cartsService, UserManager<ApplicationUser> userManager)
 {
     this.cartsService = cartsService;
     this.userManager = userManager;
 }
Ejemplo n.º 26
0
 public void Initialize()
 {
     _cartService = new CartsService();
     _prodService = new ProductsService();
     ObjectMapper.ConfigureAutoMapper();
 }
Ejemplo n.º 27
0
 public CartController(ICartsService cartsService)
 {
     this.cartsService = cartsService;
 }
Ejemplo n.º 28
0
 public HomeController(IBeatsService beatsService, ICartsService cartsService)
 {
     this.beatsService = beatsService;
     this.cartsService = cartsService;
 }
Ejemplo n.º 29
0
 public CartsController(ICartsService service)
 {
     _service = service;
 }
Ejemplo n.º 30
0
 public CartDetailsComponent(ICartsService cartsService, IOrdersService ordersService, IUriHelper uriHelper)
 {
     _cartsService  = cartsService;
     _ordersService = ordersService;
     _uriHelper     = uriHelper;
 }