public AdminController(IPlaneRepository planeRepository, IReservationRepository reservationRepository, IServicesRepository repository, IUsersRepository repository1)
 {
     this.reservationRepository = reservationRepository;
     this.repository            = planeRepository;
     this.servicesRepository    = repository;
     this.userRepository        = repository1;
 }
Beispiel #2
0
 public CreateFlightCommandHandler(IFlightRepository flightRepo, IPlaneRepository planeRepo, IUserRepository userRepo, IAirportRepository airportRepo)
 {
     _userRepo    = userRepo;
     _airportRepo = airportRepo;
     _flightRepo  = flightRepo;
     _planeRepo   = planeRepo;
 }
Beispiel #3
0
 public DalService(IFlightRepository flightRepository,
                   IPlaneRepository planeRepository,
                   IStationRepository stationRepository)
 {
     this.flightRepository  = flightRepository;
     this.planeRepository   = planeRepository;
     this.stationRepository = stationRepository;
 }
        static void PseudoDIStartUp()
        {
            IFileHelper fileHelper = new FileHelper();

            PlaneRepository   = new PlaneRepository(fileHelper);
            AirportRepository = new AirportRepository(fileHelper);
            FlightManager     = new FlightManager(PlaneRepository, fileHelper);
            FlightManager.LoadFlights();
            FlightManager.RandomlyAssignPlanesToFlights();
            OrderRepository = new OrderRepository(fileHelper);
            OrderManager    = new OrderManager(FlightManager, OrderRepository);
        }
Beispiel #5
0
        public UnitOfWork(ICrewRepository crewRepository,
                          IFlightRepository flightRepository,
                          IPilotRepository pilotRepository,
                          IPlaneRepository planeRepository,
                          IPlaneTypeRepository planeTypeRepository,
                          IStewardessRepository stewardessRepository,
                          ITakeOffRepository takeOffRepository,
                          ITicketRepository ticketRepository,
                          MyContext context)
        {
            this.crewRepository       = crewRepository;
            this.flightRepository     = flightRepository;
            this.pilotRepository      = pilotRepository;
            this.planeRepository      = planeRepository;
            this.planeTypeRepository  = planeTypeRepository;
            this.stewardessRepository = stewardessRepository;
            this.takeOffRepository    = takeOffRepository;
            this.ticketRepository     = ticketRepository;

            this.context = context;
        }
        public MainViewModel(IPlaneRepository planeRepository)
        {
            PlaneRepository = planeRepository;
            Planes          = new ObservableCollection <IPlane>();

            RefreshPlanesCommand = new RelayCommand(async() =>
            {
                var planes = (await PlaneRepository.GetAllPlanesAsync()).ToList();

                if (Planes.Any())
                {
                    Planes.Clear();
                }

                foreach (var item in planes)
                {
                    Planes.Add(item);
                }

                NotifyPropertyChanged("Planes");
            });
        }
Beispiel #7
0
 public PlaneController(IPlaneRepository context)
 {
     _planeRepository = context;
 }
Beispiel #8
0
 public GetAllPlanesQueryHandler(IPlaneRepository repo)
 {
     _repo = repo;
 }
Beispiel #9
0
 public CreateModel(IPlaneRepository repository)
 {
     _repository = repository;
 }
 public UpdateFlightRealTimeCommandHandler(IFlightRepository flightRepo, IPlaneRepository planeRepo)
 {
     _flightRepo = flightRepo;
     _planeRepo  = planeRepo;
 }
 public ValidateFlightOverbooked(IPlaneRepository planeRepository)
 {
     _planeRepository = planeRepository;
 }
 public FlightManager(IPlaneRepository planeRepository, IFileHelper fileHelper)
 {
     _flights         = new List <Flight>();
     _planeRepository = planeRepository;
     _fileHelper      = fileHelper;
 }
Beispiel #13
0
 public DeleteModel(IPlaneRepository repository)
 {
     _repository = repository;
 }
Beispiel #14
0
 public EditModel(IPlaneRepository repository)
 {
     _repository = repository;
 }
Beispiel #15
0
 public PlaneService(IUnitOfWork unitOfWork,
                     IPlaneRepository planeRepository) : base(unitOfWork)
 {
     this.PlaneRepository = planeRepository;
 }
Beispiel #16
0
 public DetailsModel(IPlaneRepository repository)
 {
     _repository = repository;
 }
Beispiel #17
0
 public IndexModel(IPlaneRepository repository)
 {
     _repository = repository;
 }
Beispiel #18
0
 public PlanesController(IPlaneRepository repository)
 {
     _repository = repository;
 }
Beispiel #19
0
 public CreateModel(IFlightRepository repository, IAirportRepository airportRepository, IPlaneRepository planeRepository)
 {
     _repository        = repository;
     _airportRepository = airportRepository;
     _planeRepository   = planeRepository;
 }
 public GetPlaneQueryHandler(IPlaneRepository repo)
 {
     _repo = repo;
 }
Beispiel #21
0
 public PlanesController(IPlaneRepository _planeRepository)
 {
     planeRepository = _planeRepository;
 }
Beispiel #22
0
 public MechanicController(IPlaneRepository repo, IServicesRepository repo1)
 {
     repository  = repo;
     repository1 = repo1;
 }
 public PlaneService(IPlaneRepository planeRepo)
 {
     this.planeRepo = planeRepo;
 }
Beispiel #24
0
 public HomeController(IAirlineRepository repository, IPlaneRepository _planeRepository)
 {
     airlineRepository = repository;
     planeRepository   = _planeRepository;
 }
Beispiel #25
0
 public FlightsController(IFlightRepository repository, IAirportRepository airportRepository, IPlaneRepository planeRepository)
 {
     _repository        = repository;
     _airportRepository = airportRepository;
     _planeRepository   = planeRepository;
 }
Beispiel #26
0
 public SaveTODB()
 {
     planeRepository = new Planerepository();
 }
Beispiel #27
0
 public PlaneService(IPlaneRepository planeRepository, IUnitOfWork unitOfWork)
 {
     _planeRepository = planeRepository;
     _unitOfWork      = unitOfWork;
 }
Beispiel #28
0
 public PlanesController(IPlaneRepository planeRepository)
 {
     _planeRepository = planeRepository;
 }
 public UpdatePlaneToOkStatusCommandHandler(IPlaneRepository repo)
 {
     _repo = repo;
 }
Beispiel #30
0
 public UserController(IPlaneRepository repo, IReservationRepository repo1, IServicesRepository repo2)
 {
     repository            = repo;
     reservationRepository = repo1;
     servicesRepository    = repo2;
 }