Exemple #1
0
 public RewardsServiceTests()
 {
     _mockApiClient  = new Mock <IApiClient>();
     _rewardsService = new RewardsService(_mockApiClient.Object);
 }
Exemple #2
0
 public RewardsController(IRewardsService service)
 {
     _service = service;
 }
Exemple #3
0
 public RewardsDataController(IRewardsService rewardsService)
 {
     _rewardsService = rewardsService;
 }
 public RewardsController(IRewardsService rewardsService, IMapper mapper)
 {
     _rewardsService = rewardsService;
     _mapper         = mapper;
 }
Exemple #5
0
        //private readonly IPointsPromotionService _pointsPromotionService;

        public RewardsController(IRewardsService discountService)
        {
            _discountService = discountService ?? throw new ArgumentNullException(nameof(discountService));
            //  _pointsPromotionService = pointsPromotionService ?? throw new ArgumentNullException(nameof(pointsPromotionService));
        }