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

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