public RewardsServiceTests() { _mockApiClient = new Mock <IApiClient>(); _rewardsService = new RewardsService(_mockApiClient.Object); }
public RewardsController(IRewardsService service) { _service = service; }
public RewardsDataController(IRewardsService rewardsService) { _rewardsService = rewardsService; }
public RewardsController(IRewardsService rewardsService, IMapper mapper) { _rewardsService = rewardsService; _mapper = mapper; }
//private readonly IPointsPromotionService _pointsPromotionService; public RewardsController(IRewardsService discountService) { _discountService = discountService ?? throw new ArgumentNullException(nameof(discountService)); // _pointsPromotionService = pointsPromotionService ?? throw new ArgumentNullException(nameof(pointsPromotionService)); }