Example #1
0
 public ZanoxCouponRepository(ZanoxHttpSettings zanoxSettings, HttpClient client, IMapper mapper, ZanoxStoreMongoDbRepository storeRepository)
 {
     _client          = client.ThrowIfNull(nameof(client));
     _zanoxSettings   = zanoxSettings.ThrowIfNull(nameof(zanoxSettings));
     _mapper          = mapper.ThrowIfNull(nameof(mapper));
     _storeRepository = storeRepository.ThrowIfNull(nameof(storeRepository));
 }
Example #2
0
 public ZanoxCategoryHttpRepository(ZanoxProgramHttpRepository programRepository, ZanoxStoreMongoDbRepository storeRepository, ZanoxCouponRepository couponRepository)
 {
     _programRepository = programRepository.ThrowIfNull(nameof(programRepository));
     _storeRepository   = storeRepository.ThrowIfNull(nameof(storeRepository));
     _couponRepository  = couponRepository.ThrowIfNull(nameof(couponRepository));
 }