public VoucherService(ISessionManager sessionManager, IConnectivityService connectivityService, IPolicyWrapper <IEnumerable <Event> > eventPolicies, IPolicyWrapper <IEnumerable <Models.Voucher> > voucherPolicies, IUIServices uiServices, IBaseRepository <Event> eventRepository, IBaseRepository <Models.Voucher> voucherRepository)
 {
     _voucherApi          = RestService.For <IVoucherApi>(Constants.DEFAULT_API_ENDPOINT);
     _sessionManager      = sessionManager;
     _eventPolicies       = eventPolicies;
     _voucherPolicies     = voucherPolicies;
     _uiServices          = uiServices;
     _eventRepository     = eventRepository;
     _connectivityService = connectivityService;
     _voucherRepository   = voucherRepository;
 }
Example #2
0
 public HeroService(HttpClient httpClient, IProductApi productService, IPaxApi paxService,
                    ISearchApi searchApi, IScheduleApi scheduleApi, IProductPricingApi productPricingApi,
                    IPaymentApi paymentApi, IBookingApi bookingApi, IVoucherApi voucherApi)
 {
     _httpClient       = httpClient ?? throw new ArgumentNullException(nameof(httpClient));
     ProductApi        = productService ?? throw new ArgumentNullException(nameof(productService));
     PaxApi            = paxService ?? throw new ArgumentNullException(nameof(paxService));
     SearchApi         = searchApi ?? throw new ArgumentNullException(nameof(searchApi));
     ScheduleApi       = scheduleApi ?? throw new ArgumentNullException(nameof(scheduleApi));
     ProductPricingApi = productPricingApi ?? throw new ArgumentNullException(nameof(productPricingApi));
     PaymentApi        = paymentApi ?? throw new ArgumentNullException(nameof(paymentApi));
     BookingApi        = bookingApi ?? throw new ArgumentNullException(nameof(bookingApi));
     VoucherApi        = voucherApi ?? throw new ArgumentNullException(nameof(voucherApi));
 }
 public VoucherService(ISessionManager sessionManager, IPolicyWrapper <IEnumerable <Event> > policies)
 {
     _voucherApi     = RestService.For <IVoucherApi>(Constants.DEFAULT_API_ENDPOINT);
     _sessionManager = sessionManager;
     _policies       = policies;
 }