Exemple #1
0
 public UserService(IUserRepository userRepository,
                    IMapper mapper,
                    IUserBasketRepository basketRepository)
 {
     _userRepository   = userRepository;
     _mapper           = mapper;
     _basketRepository = basketRepository;
 }
Exemple #2
0
 public ShoppingBasketService(IUserBasketRepository userBasketRepository,
                              IBasketItemRepository basketItemRepository,
                              IDiscountRepository discountRepository)
 {
     this.userBasketRepository = userBasketRepository;
     this.basketItemRepository = basketItemRepository;
     this.discountRepository   = discountRepository;
 }