Exemple #1
0
 public CartController(IProductsService productsService, ICartsService cartsService, ICartItemsService cartItemsService,
                       IWebHostEnvironment env)
 {
     _productsService  = productsService;
     _cartsService     = cartsService;
     _cartItemsService = cartItemsService;
     _env = env;
 }
        public CartItemsTests()
        {
            var myProfile     = new MappingProfile();
            var configuration = new MapperConfiguration(cfg => cfg.AddProfile(myProfile));

            _mapper = configuration.CreateMapper();

            _sut = new CartItemsService(_repositoryMock.Object, configuration.CreateMapper());
        }
Exemple #3
0
 public CartsService(
     IDeletableEntityRepository <Cart> cartsRepository,
     ICartItemsService cartItemsService,
     IItemsService itemsService,
     ICouponsService couponsService)
 {
     this.cartsRepository  = cartsRepository;
     this.cartItemsService = cartItemsService;
     this.itemsService     = itemsService;
     this.couponsService   = couponsService;
 }
 public CartItemsController(
     DiscountGrpcService discountGrpcService,
     ICartItemsService cartItemsService,
     IRedisCacheService cacheService,
     IMapper mapper)
 {
     _discountGrpcService = discountGrpcService;
     _cartItemsService    = cartItemsService;
     _cacheService        = cacheService;
     _mapper = mapper;
 }
 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;
 }
Exemple #6
0
 public CartController(ICartService cartService, ICartItemsService cartItemsService, IPublishEndpoint publishEndpoint)
 {
     _cartService      = cartService;
     _cartItemsService = cartItemsService;
     _publishEndpoint  = publishEndpoint;
 }
Exemple #7
0
 public CartItemsController(ICartItemsService cartItemsService)
 {
     this.cartItemsService = cartItemsService;
 }
 public CartsController(ICartItemsService cartItemsService, ICartsService cartsService)
 {
     _cartItemsService = cartItemsService;
     _cartsService     = cartsService;
 }
Exemple #9
0
 public CartItemsController(ICartItemsService service)
 {
     _service = service;
 }
 public OrdersController(IOrdersService ordersService, ICartItemsService cartItemsService)
 {
     _ordersService    = ordersService;
     _cartItemsService = cartItemsService;
 }
Exemple #11
0
 public ShoppingCartController(IShoppingCartManager shoppingCartManager,
                               ICartItemsService cartItemsService)
 {
     _shoppingCartManager = shoppingCartManager;
     _cartItemsService    = cartItemsService;
 }