public AdminController(IPlaneRepository planeRepository, IReservationRepository reservationRepository, IServicesRepository repository, IUsersRepository repository1) { this.reservationRepository = reservationRepository; this.repository = planeRepository; this.servicesRepository = repository; this.userRepository = repository1; }
public CreateFlightCommandHandler(IFlightRepository flightRepo, IPlaneRepository planeRepo, IUserRepository userRepo, IAirportRepository airportRepo) { _userRepo = userRepo; _airportRepo = airportRepo; _flightRepo = flightRepo; _planeRepo = planeRepo; }
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); }
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"); }); }
public PlaneController(IPlaneRepository context) { _planeRepository = context; }
public GetAllPlanesQueryHandler(IPlaneRepository repo) { _repo = repo; }
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; }
public DeleteModel(IPlaneRepository repository) { _repository = repository; }
public EditModel(IPlaneRepository repository) { _repository = repository; }
public PlaneService(IUnitOfWork unitOfWork, IPlaneRepository planeRepository) : base(unitOfWork) { this.PlaneRepository = planeRepository; }
public DetailsModel(IPlaneRepository repository) { _repository = repository; }
public IndexModel(IPlaneRepository repository) { _repository = repository; }
public PlanesController(IPlaneRepository repository) { _repository = repository; }
public CreateModel(IFlightRepository repository, IAirportRepository airportRepository, IPlaneRepository planeRepository) { _repository = repository; _airportRepository = airportRepository; _planeRepository = planeRepository; }
public GetPlaneQueryHandler(IPlaneRepository repo) { _repo = repo; }
public PlanesController(IPlaneRepository _planeRepository) { planeRepository = _planeRepository; }
public MechanicController(IPlaneRepository repo, IServicesRepository repo1) { repository = repo; repository1 = repo1; }
public PlaneService(IPlaneRepository planeRepo) { this.planeRepo = planeRepo; }
public HomeController(IAirlineRepository repository, IPlaneRepository _planeRepository) { airlineRepository = repository; planeRepository = _planeRepository; }
public FlightsController(IFlightRepository repository, IAirportRepository airportRepository, IPlaneRepository planeRepository) { _repository = repository; _airportRepository = airportRepository; _planeRepository = planeRepository; }
public SaveTODB() { planeRepository = new Planerepository(); }
public PlaneService(IPlaneRepository planeRepository, IUnitOfWork unitOfWork) { _planeRepository = planeRepository; _unitOfWork = unitOfWork; }
public PlanesController(IPlaneRepository planeRepository) { _planeRepository = planeRepository; }
public UpdatePlaneToOkStatusCommandHandler(IPlaneRepository repo) { _repo = repo; }
public UserController(IPlaneRepository repo, IReservationRepository repo1, IServicesRepository repo2) { repository = repo; reservationRepository = repo1; servicesRepository = repo2; }