Ejemplo n.º 1
0
 public ChartService(IClientContext clientContext, IFlightContext flightContext, IFlightAirportsContext flightAirportsContext, ITicketContext ticketContext, UserManager <ApplicationUser> userContext, ICountryContext countryContext, ICityContext cityContext)
 {
     _clientContext         = clientContext;
     _flightContext         = flightContext;
     _flightAirportsContext = flightAirportsContext;
     _ticketContext         = ticketContext;
     _userContext           = userContext;
     _countryContext        = countryContext;
     _cityContext           = cityContext;
 }
Ejemplo n.º 2
0
 public CityService(ICityContext cityCntx, IMapper mapper)
 {
     _cityCntx = cityCntx ?? throw new ArgumentNullException(nameof(cityCntx));
     _mapper   = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
 public CityController(ICityContext cityContext)
 {
     _cityContext = cityContext;
 }
Ejemplo n.º 4
0
 public CityRepository(ICityContext cityContext, IMapper mapper)
 {
     _cityContext = cityContext ?? throw new ArgumentNullException(nameof(cityContext));
     _mapper      = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
Ejemplo n.º 5
0
 public CityService(ICityContext context)
 {
     _context = context ?? throw new NullReferenceException(nameof(context));
 }