Ejemplo n.º 1
0
 public FavouriteTripController(IFavouriteTripService favouriteTripService, IAuthService authService, IStringLocalizer <AppResources> stringLocalizer, ICustomRequestCultureProvider customRequestCultureProvider)
 {
     _favouriteTripService         = favouriteTripService ?? throw new ArgumentNullException(nameof(favouriteTripService));
     _authService                  = authService ?? throw new ArgumentNullException(nameof(authService));
     _stringLocalizer              = stringLocalizer;
     _customRequestCultureProvider = customRequestCultureProvider;
 }
Ejemplo n.º 2
0
 public TripController(ITripService tripService, IAuthService authService, IContextFactory <ApplicationContext> contextFactory, ICustomRequestCultureProvider customRequestCultureProvider)
 {
     _tripService    = tripService ?? throw new ArgumentNullException(nameof(tripService));
     _authService    = authService ?? throw new ArgumentNullException(nameof(authService));
     _contextFactory = contextFactory ?? throw new ArgumentNullException(nameof(contextFactory));
     _customRequestCultureProvider = customRequestCultureProvider ?? throw new ArgumentNullException(nameof(customRequestCultureProvider));
 }
Ejemplo n.º 3
0
 public CountryController(ICountryService countryService, ICustomRequestCultureProvider customRequestCultureProvider)
 {
     _countryService = countryService ?? throw new ArgumentNullException(nameof(countryService));
     _customRequestCultureProvider = customRequestCultureProvider ?? throw new ArgumentNullException(nameof(customRequestCultureProvider));
 }