public LomadeeCategoryHttpRepository(LomadeeHttpSettings lomadeeSettings, HttpClient client, IMapper mapper, LomadeeCouponMongoDbRepository couponRepository) { _client = client.ThrowIfNull(nameof(client)); _lomadeeSettings = lomadeeSettings.ThrowIfNull(nameof(lomadeeSettings)); _mapper = mapper.ThrowIfNull(nameof(mapper)); _couponRepository = couponRepository.ThrowIfNull(nameof(couponRepository)); }
public LomadeeStoreHttpRepository(LomadeeHttpSettings lomadeeSettings, HttpClient client, IMapper mapper, LomadeeCouponMongoDbRepository couponRepository) { _client = client ?? throw new ArgumentNullException(nameof(client)); _lomadeeSettings = lomadeeSettings ?? throw new ArgumentNullException(nameof(lomadeeSettings)); _mapper = mapper.ThrowIfNull(nameof(mapper)); _couponRepository = couponRepository.ThrowIfNull(nameof(couponRepository)); }