コード例 #1
0
 public PassengerLogic(IMapper mapper, IPassengerRepository passengerRepository, IAddressLogic addressLogic, IRouteLogic routeLogic)
 {
     _mapper = mapper;
     _passengerRepository = passengerRepository;
     _addressLogic        = addressLogic;
     _routeLogic          = routeLogic;
 }
コード例 #2
0
 public FlightsAdminController(IFlightRepository flightRepository, IReservationRepository reservationRepository, IPassengerRepository passengerRepository, IMapper mapper)
 {
     _flightRepository      = flightRepository;
     _reservationRepository = reservationRepository;
     _passengerRepository   = passengerRepository;
     _mapper = mapper;
 }
コード例 #3
0
 public AccountController(IVehicleTypeRepository vehicleTypeRepository, IDriverRepository driverRepository, IPassengerRepository passengerRepository, IVehicleRepository vehicleRepository)
 {
     _vehicleTypeRepository = vehicleTypeRepository;
     _driverRepository      = driverRepository;
     _vehicleRepository     = vehicleRepository;
     _passengerRepository   = passengerRepository;
 }
コード例 #4
0
 public PassengerService(IPassengerRepository passengerRepository, IUserRepository userRepository,
                         IMapper mapper)
 {
     _passengerRepository = passengerRepository;
     _userRepository      = userRepository;
     _mapper = mapper;
 }
コード例 #5
0
 public StewardController(IPassengerRepository passengerRepository, IProductRepository productRepository, IStewardRepository stewardRepository, IOrderRepository orderRepository)
 {
     _passengerRepository = passengerRepository;
     _productRepository   = productRepository;
     _stewardRepository   = stewardRepository;
     _orderRepository     = orderRepository;
 }
コード例 #6
0
        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();
        }
コード例 #7
0
ファイル: SeatController.cs プロジェクト: alihan21/FlightApp
 public SeatController(ISeatRepository seatRepository, IFlightRepository flightRepository, IUserFlightRepository userFlightRepository, IPassengerRepository passengerRepository)
 {
     _seatRepository       = seatRepository;
     _flightRepository     = flightRepository;
     _userFlightRepository = userFlightRepository;
     _passengerRepository  = passengerRepository;
 }
コード例 #8
0
 public PassengerService(IAirplaneService airplane, IPassengerRepository repository, IUnitOfWork unitOfWork
                         , IValidator <Passenger> validator, IValidator <PassengerToAirPlane> passengerToAirPlaneValidador)
     : base(repository, unitOfWork, validator)
 {
     _airplane = airplane;
     _passengerToAirPlaneValidador = passengerToAirPlaneValidador;
 }
コード例 #9
0
        public NewPassengerVM(IPassengerRepository repository,
                              IXmlDialogService xmlDialogService)
        {
            _repository       = repository;
            _xmlDialogService = xmlDialogService;

            this.ForegroundForUser = "******";
            this.MessageForUser    = "******";
        }
コード例 #10
0
 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;
 }
コード例 #12
0
 public FlightsController(IFlightRepository flightRepository,
                          IPassengerRepository passengerRepository,
                          IBookingService bookingService,
                          IMapper mapper)
 {
     _flightRepository    = flightRepository;
     _passengerRepository = passengerRepository;
     _bookingService      = bookingService;
     _mapper = mapper;
 }
コード例 #13
0
ファイル: UnitOfWork.cs プロジェクト: MichaelTsyntar/OOP
        public UnitOfWork(
            IPassengerRepository passengerRepository,
            IFlightScheduleRepository flightScheduleRepository,
            IFlightRepository flightRepository
            )

        {
            _passengerRepository      = passengerRepository;
            _flightScheduleRepository = flightScheduleRepository;
            _flightRepository         = flightRepository;
        }
コード例 #14
0
 public CheckInPassenger(
     IFlightRepository flightRepository,
     IPassengerRepository passengerRepository,
     IBaggageLimitsRepository baggageLimitsRepository,
     ICheckedInBaggageRepository baggageRepository)
 {
     this.flightRepository        = flightRepository;
     this.passengerRepository     = passengerRepository;
     this.baggageLimitsRepository = baggageLimitsRepository;
     this.baggageRepository       = baggageRepository;
 }
コード例 #15
0
        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);
        }
コード例 #16
0
 public StartPassengerRegistration(
     IFlightRepository flightRepository,
     IPassengerRepository passengerRepository,
     IBaggageLimitsRepository baggageLimitsRepository,
     ICheckedInBaggageRepository baggageRepository)
 {
     this.flightRepository        = flightRepository;
     this.passengerRepository     = passengerRepository;
     this.baggageLimitsRepository = baggageLimitsRepository;
     this.baggageRepository       = baggageRepository;
 }
コード例 #17
0
 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;
 }
コード例 #18
0
ファイル: ItineraryController.cs プロジェクト: yenrr/Code
        /// <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);
            }
        }
コード例 #19
0
 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;
 }
コード例 #20
0
        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());
        }
コード例 #21
0
 public PersonController(IPassengerRepository passengerRepository, IPersonnelRepository personnelRepository)
 {
     _passengerRepository = passengerRepository;
     _personnelRepository = personnelRepository;
 }
コード例 #22
0
ファイル: ChatHub.cs プロジェクト: reeveng/FlightApp
 public ChatHub(IPassengerRepository passengerRepo)
 {
     _passengerRepository = passengerRepo;
 }
コード例 #23
0
ファイル: PersonController.cs プロジェクト: reeveng/FlightApp
 public PersonController(IPassengerRepository passengerRepo, IStewardRepository stewardRepo)
 {
     _passengerRepository = passengerRepo;
     _stewardRepository   = stewardRepo;
 }
コード例 #24
0
ファイル: PassangerService.cs プロジェクト: kzari/CoreAngular
 public PassengerService(IPassengerRepository passengerRepository)
 {
     _passengerRepository = passengerRepository;
 }
コード例 #25
0
 public CustomerService(ICustomerRepository customerRepository, IPassengerRepository passengerRepository, IAdministratorRepository administratorRepository)
 {
     this.customerRepository  = customerRepository;
     this.passengerRepository = passengerRepository;
 }
コード例 #26
0
 public PassengerController(IPassengerRepository passengerManager)
 {
     _passengerManager = passengerManager;
 }
コード例 #27
0
 public PassengerProcessor(ApplicationDbContext dbcontext)
 {
     _passengerRepository = new PassengerRepository(dbcontext);
 }
コード例 #28
0
 public PassengerController(IPassengerRepository passengerRepository)
 {
     _passengerRepository = passengerRepository;
 }
コード例 #29
0
 public AppServiceBase(IPassengerRepository repository)
     : base(repository)
 {
     this._repository = repository;
 }
コード例 #30
0
 public CreatePassengerCommandHandler(IPassengerRepository passengerRepository)
 {
     _passengerRepository = passengerRepository;
 }