Beispiel #1
0
 public TicketController(IConfiguration configuration)
 {
     context          = new MSSQLTicketContext(configuration.GetConnectionString("DefaultConnection"));
     repo             = new TicketRepository(context);
     converter        = new TicketViewModelConverter();
     stationContext   = new MSSQLStationContext(configuration.GetConnectionString("DefaultConnection"));
     stationRepo      = new StationRepository(stationContext);
     stationConverter = new StationViewModelConverter();
 }
 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;
 }
Beispiel #3
0
 public HomeController(IConfiguration configuration)
 {
     ticketContext    = new MSSQLTicketContext(configuration.GetConnectionString("DefaultConnection"));
     ticketRepo       = new TicketRepository(ticketContext);
     ticketConverter  = new TicketViewModelConverter();
     stationContext   = new MSSQLStationContext(configuration.GetConnectionString("DefaultConnection"));
     stationRepo      = new StationRepository(stationContext);
     stationConverter = new StationViewModelConverter();
     trajectContext   = new MSSQLTrajectContext(configuration.GetConnectionString("DefaultConnection"));
     trajectRepo      = new TrajectRepository(trajectContext);
     trajectConverter = new TrajectViewModelConverter();
 }
Beispiel #4
0
 public TicketRepo(ITicketContext context)
 {
     this.context = context;
 }
Beispiel #5
0
 public TicketRepository(ITicketContext context)
 {
     Context = context;
 }
 public CurrencyExchangeTicketsService(ITicketContext context)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
 }
 public TicketService(ITicketContext tCntx, IMapper mapper)
 {
     _tCntx  = tCntx ?? throw new ArgumentNullException(nameof(tCntx));
     _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }