public AddShoppingCartCommandHandler(IShopingCartRepository repository, IMapper mapper) { EnsureArg.IsNotNull(mapper); EnsureArg.IsNotNull(repository); this.repository = repository; this.mapper = mapper; }
public GetShoppingCartsQueryHandler(IShopingCartRepository repository, IMapper mapper) { EnsureArg.IsNotNull(mapper); EnsureArg.IsNotNull(repository); this.repository = repository; this.mapper = mapper; }
public AddProductToShoppingCartCommandHandler(IShopingCartRepository shoppingCartRepository, IProductRepository productRepository) { EnsureArg.IsNotNull(shoppingCartRepository); this.shoppingCartRepository = shoppingCartRepository; this.productRepository = productRepository; }
public OrderService(IOrderRepository orderRepository, IShopingCartRepository shopingCartRepository) { this.orderRepository = orderRepository; this.shopingCartRepository = shopingCartRepository; }
public DeleteShoppingCartCommandHandler(IShopingCartRepository repository) { EnsureArg.IsNotNull(repository); this.repository = repository; }
public ShopingCartService(IShopingCartRepository cartRepository, IProductRepository productRepository) { this.cartRepository = cartRepository; this.productRepository = productRepository; }