public PassengerLogic(IMapper mapper, IPassengerRepository passengerRepository, IAddressLogic addressLogic, IRouteLogic routeLogic) { _mapper = mapper; _passengerRepository = passengerRepository; _addressLogic = addressLogic; _routeLogic = routeLogic; }
public FlightsAdminController(IFlightRepository flightRepository, IReservationRepository reservationRepository, IPassengerRepository passengerRepository, IMapper mapper) { _flightRepository = flightRepository; _reservationRepository = reservationRepository; _passengerRepository = passengerRepository; _mapper = mapper; }
public AccountController(IVehicleTypeRepository vehicleTypeRepository, IDriverRepository driverRepository, IPassengerRepository passengerRepository, IVehicleRepository vehicleRepository) { _vehicleTypeRepository = vehicleTypeRepository; _driverRepository = driverRepository; _vehicleRepository = vehicleRepository; _passengerRepository = passengerRepository; }
public PassengerService(IPassengerRepository passengerRepository, IUserRepository userRepository, IMapper mapper) { _passengerRepository = passengerRepository; _userRepository = userRepository; _mapper = mapper; }
public StewardController(IPassengerRepository passengerRepository, IProductRepository productRepository, IStewardRepository stewardRepository, IOrderRepository orderRepository) { _passengerRepository = passengerRepository; _productRepository = productRepository; _stewardRepository = stewardRepository; _orderRepository = orderRepository; }
public AllPassengersVM(IPassengerRepository repository, IMainNavigationService navigationService) { this.DataGridVisibility = true; this.ButtonVisible = false; _repository = repository; _navigationService = navigationService; Task.Factory.StartNew(() => { lock (locker) { this.Passengers = new ObservableCollection <PassengerModel>(_repository.GetAll()); } Application.Current.Dispatcher.Invoke( new Action(() => { this.DataGridVisibility = false; this.ButtonVisible = true; this.ForegroundForUser = "******"; this.MessageForUser = "******"; })); }); ReceivePassenger(); }
public SeatController(ISeatRepository seatRepository, IFlightRepository flightRepository, IUserFlightRepository userFlightRepository, IPassengerRepository passengerRepository) { _seatRepository = seatRepository; _flightRepository = flightRepository; _userFlightRepository = userFlightRepository; _passengerRepository = passengerRepository; }
public PassengerService(IAirplaneService airplane, IPassengerRepository repository, IUnitOfWork unitOfWork , IValidator <Passenger> validator, IValidator <PassengerToAirPlane> passengerToAirPlaneValidador) : base(repository, unitOfWork, validator) { _airplane = airplane; _passengerToAirPlaneValidador = passengerToAirPlaneValidador; }
public NewPassengerVM(IPassengerRepository repository, IXmlDialogService xmlDialogService) { _repository = repository; _xmlDialogService = xmlDialogService; this.ForegroundForUser = "******"; this.MessageForUser = "******"; }
public PassengerController(IPassengerRepository passengerRepository, IDocumentTypeRepository documentTypeRepository, IMemoryCache memoryCache, ILogger <PassengerController> logger) { _passengerRepository = passengerRepository; _documentTypeRepository = documentTypeRepository; _memoryCache = memoryCache; _logger = logger; }
public PassengersController(IPassengerRepository passengerRepository, IVehicleRepository vehicleRepository, IVehicleTypeRepository vehicleTypeRepository, IPaymentTypeRepository paymentTypeRepository, IPaymentRepository paymentRepository, IRideRepository rideRepository) { _passengerRepository = passengerRepository; _vehicleRepository = vehicleRepository; _vehicleTypeRepository = vehicleTypeRepository; _paymentTypeRepository = paymentTypeRepository; _paymentRepository = paymentRepository; _rideRepository = rideRepository; }
public FlightsController(IFlightRepository flightRepository, IPassengerRepository passengerRepository, IBookingService bookingService, IMapper mapper) { _flightRepository = flightRepository; _passengerRepository = passengerRepository; _bookingService = bookingService; _mapper = mapper; }
public UnitOfWork( IPassengerRepository passengerRepository, IFlightScheduleRepository flightScheduleRepository, IFlightRepository flightRepository ) { _passengerRepository = passengerRepository; _flightScheduleRepository = flightScheduleRepository; _flightRepository = flightRepository; }
public CheckInPassenger( IFlightRepository flightRepository, IPassengerRepository passengerRepository, IBaggageLimitsRepository baggageLimitsRepository, ICheckedInBaggageRepository baggageRepository) { this.flightRepository = flightRepository; this.passengerRepository = passengerRepository; this.baggageLimitsRepository = baggageLimitsRepository; this.baggageRepository = baggageRepository; }
public static async Task <Passenger> GetOrFailAsync(this IPassengerRepository repository, Guid userId) { var passenger = await repository.GetAsync(userId); if (passenger == null) { throw new Exception($"Passenger with id '{userId}' doesn't exists."); } return(passenger); }
public StartPassengerRegistration( IFlightRepository flightRepository, IPassengerRepository passengerRepository, IBaggageLimitsRepository baggageLimitsRepository, ICheckedInBaggageRepository baggageRepository) { this.flightRepository = flightRepository; this.passengerRepository = passengerRepository; this.baggageLimitsRepository = baggageLimitsRepository; this.baggageRepository = baggageRepository; }
public UnitOfWork(MyDbContext context, IAirplaneRepository airplaneRepository, IAirportRepository airportRepository, IFlightRepository flightRepository, IPassengerRepository passengerRepository, IRouteRepository routeRepository, ITicketRepository ticketRepository, ISeatRepository seatRepository, ICarrierRepository carrierRepository) { _context = context; Airplanes = airplaneRepository; Airports = airportRepository; Flights = flightRepository; Passengers = passengerRepository; Routes = routeRepository; Tickets = ticketRepository; Seats = seatRepository; Carriers = carrierRepository; }
/// <summary> /// Insert flight into a temporal list for then save the flight information in the database of fights and itineraries. /// </summary> /// <param name="model"></param> public void InsertFlightIntoList(BasicItineraryModel model) { var airlineInfo = _airlinesRepository.GetAirlinebyName(model.AirlineName); _airportsRepository = new AirportsRepository(); _passengerRepository = new PassengerRepository(); if (airlineInfo == null) { return; } var airlineId = airlineInfo.AirlineID; var airportInfo1 = _airportsRepository.GetAirportbyName(model.DepartureName); var airportInfo2 = _airportsRepository.GetAirportbyName(model.ArrivalName); if ((airportInfo1 == null) || (airportInfo2 == null)) { return; } var departureLocation = airportInfo1.AirportID; var arrivalLocation = airportInfo2.AirportID; var flight = new Flights { AirlineID = airlineId, DepartureLocation = departureLocation, FlightNumber = model.FlightNumber, ArrivalLocation = arrivalLocation, DepartureDateTime = (DateTime)model.DepartureTime, ArrivalDateTime = (DateTime)model.ArrivalTime, }; _listF.Add(flight); _listIti.Add(model); var passenger = _passengerRepository.Get(model.PassengerEmail); if (passenger == null) { passenger = new Passengers { PassengerEmail = model.PassengerEmail, PassengerLastName = model.PassengerLastName, PassengerName = model.PassengerName, TokenId = "TokenID" }; _passengerRepository.Add(passenger); } }
public BookingController(IBookingRepository bookingRepository, IPassengerRepository passengerRepository, IAirplaneRepository airplaneRepository, IPaymentRepository paymentRepository, IFlightRepository flightRepository, IUserRepository userRepository, IMapper mapper, IEmailService emailService) { _bookingRepository = bookingRepository; _passengerRepository = passengerRepository; _airplaneRepository = airplaneRepository; _paymentRepository = paymentRepository; _flightRepository = flightRepository; _userRepository = userRepository; _mapper = mapper; _emailService = emailService; }
public EventClassModel() { idbfactory = new DbFactory(); unitOfWork = new UnitOfWork(idbfactory); repotk_Location = new LocationRepository(idbfactory); repoEvent = new EventRepository(idbfactory); repoEventCustomer = new EventCustomerRepository(idbfactory); repotk_ClientProfile = new ClientProfileRepository(idbfactory); repoEventCategory = new EventCategoryRepository(idbfactory); repotk_ContactInfo = new ContactInformationRepository(idbfactory); repotk_Passenger = new PassengerRepository(idbfactory); repotk_SeatMapping = new SeatMappingRepository(idbfactory); repotk_TranLog = new TransactionLogRepository(idbfactory); repoFreeEvents = new FreeEventsRepository(idbfactory); repoFreeEventCustomers = new FreeEventCustomersRepository(idbfactory); repoSms = new SmsRepository(idbfactory); repotk_BatchCounter = new BatchCounterRpository(idbfactory); repoCoupon = new CouponsRepository(idbfactory); repoCouponAssign = new CouponCodeAssignmentRepository(idbfactory); repoCouponSetUp = new CouponsSetUpRepository(idbfactory); db = new SqlConnection(ConfigurationManager.ConnectionStrings["DefaultConnection"].ToString()); }
public PersonController(IPassengerRepository passengerRepository, IPersonnelRepository personnelRepository) { _passengerRepository = passengerRepository; _personnelRepository = personnelRepository; }
public ChatHub(IPassengerRepository passengerRepo) { _passengerRepository = passengerRepo; }
public PersonController(IPassengerRepository passengerRepo, IStewardRepository stewardRepo) { _passengerRepository = passengerRepo; _stewardRepository = stewardRepo; }
public PassengerService(IPassengerRepository passengerRepository) { _passengerRepository = passengerRepository; }
public CustomerService(ICustomerRepository customerRepository, IPassengerRepository passengerRepository, IAdministratorRepository administratorRepository) { this.customerRepository = customerRepository; this.passengerRepository = passengerRepository; }
public PassengerController(IPassengerRepository passengerManager) { _passengerManager = passengerManager; }
public PassengerProcessor(ApplicationDbContext dbcontext) { _passengerRepository = new PassengerRepository(dbcontext); }
public PassengerController(IPassengerRepository passengerRepository) { _passengerRepository = passengerRepository; }
public AppServiceBase(IPassengerRepository repository) : base(repository) { this._repository = repository; }
public CreatePassengerCommandHandler(IPassengerRepository passengerRepository) { _passengerRepository = passengerRepository; }