Пример #1
0
 //Verificar os events depois para gravação de log.
 //Verificar o UoW depois de implementar as transaction do dapper
 public AirplaneCommandHandler(IUnitOfWork uow, IBus bus, IDomainNotificationHandler <DomainNotification> notifications, IAirplaneRepository airplaneRepository, IPassagerRepository passagerRepository)
     : base(uow, bus, notifications)
 {
     _passagerRepository = passagerRepository;
     _airplaneRepository = airplaneRepository;
     _bus = bus;
 }
Пример #2
0
 public AirplaneService(IAirplaneRepository airPlaneRepository,
                        IMapper mapper)
 {
     AirplaneRepository = airPlaneRepository ??
                          throw new ArgumentNullException(nameof(airPlaneRepository));
     Mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
Пример #3
0
 public AirplaneExcluirUsecase(IAirplaneRepository repository, AirplaneValidarExcluir airplaneValidarExcluir,
                               IUnitOfWork uow)
     : base(uow)
 {
     _repository             = repository;
     _airplaneValidarExcluir = airplaneValidarExcluir;
 }
Пример #4
0
 public AirplaneEditarUsecase(IAirplaneRepository repository, AirplaneValidarEditar airplaneValidarEditar,
                              IUnitOfWork uow)
     : base(uow)
 {
     _repository            = repository;
     _airplaneValidarEditar = airplaneValidarEditar;
 }
Пример #5
0
 public HomeController(IAirplaneClient airplanes, IAirplaneRepository airplaneRepository, ITSAClient airportClient, IAirportCodeClient airportCodeClient)
 {
     _airplanes          = airplanes;
     _airplaneRepository = airplaneRepository;
     _airportClient      = airportClient;
     _airportCodeClient  = airportCodeClient;
 }
Пример #6
0
 public AirplaneValidarEditar(IAirplaneRepository repository,
                              AirplaneValidarCodigoRepetido airplaneValidarCodigoRepetido)
     : base(repository)
 {
     _repository = repository;
     _airplaneValidarCodigoRepetido = airplaneValidarCodigoRepetido;
 }
Пример #7
0
 public TakeoffOperation(IFlightRepository flightRepository,
                         IAirplaneRepository airplaneRepository,
                         CreatePersonOperation createPersonOperation)
 {
     this.flightRepository      = flightRepository;
     this.airplaneRepository    = airplaneRepository;
     this.createPersonOperation = createPersonOperation;
 }
 public HomeController(IAirplaneClient airplanes, IAirplaneRepository airplaneRepository, ITSAClient airportClient, IAirportCodeClient airportCodeClient, IOptions <APISecretConfig> googleClient)
 {
     _airplanes          = airplanes;
     _airplaneRepository = airplaneRepository;
     _airportClient      = airportClient;
     _airportCodeClient  = airportCodeClient;
     _googleClient       = googleClient.Value.GoogleKey;
 }
        public AirplanesController(IAirplaneRepository repository, IUserHelper userHelper, IImageHelper imageHelper, IConverterHelper converterHelper)
        {
            _repository = repository;

            _userHelper      = userHelper;
            _imageHelper     = imageHelper;
            _converterHelper = converterHelper;
        }
Пример #10
0
        public ParkingReservationService(IAirplaneRepository airplaneRepository, IReservationRepository reservationRepository)
        {
            _airplaneRepository    = airplaneRepository;
            _reservationRepository = reservationRepository;

            Reservations = new Dictionary <PlaneType, int>();
            Reservations.Add(PlaneType.JET, 0);
            Reservations.Add(PlaneType.JUMBO_PROPS, 0);
        }
Пример #11
0
 public FlightController(IFlightRepository flightRepository, IBookingRepository bookingRepository,
                         IAirplaneRepository airplaneRepository, IAuthRepository authRepository, IMapper mapper)
 {
     _flightRepository   = flightRepository;
     _bookingRepository  = bookingRepository;
     _airplaneRepository = airplaneRepository;
     _authRepository     = authRepository;
     _mapper             = mapper;
 }
 public ConverterHelper(
     IUserHelper userHelper,
     IAirplaneRepository airplaneRepository,
     IAirportRepository airportRepository)
 {
     _userHelper         = userHelper;
     _airplaneRepository = airplaneRepository;
     _airportRepository  = airportRepository;
 }
Пример #13
0
 public AirplaneService(
     IUnitOfWork uow,
     IBus bus,
     IDomainNotificationHandler <DomainNotification> notifications,
     IAirplaneRepository airplaneRepo) : base(uow, bus, notifications)
 {
     _bus          = bus;
     _airplaneRepo = airplaneRepo;
 }
 public FlightRepository(
     DataContext context,
     IAirplaneRepository airplaneRepository,
     IAirportRepository airportRepository) : base(context)
 {
     _context            = context;
     _airplaneRepository = airplaneRepository;
     _airportRepository  = airportRepository;
 }
Пример #15
0
 public AirplaneController(IDomainNotificationHandler <DomainNotification> notifications,
                           IBus bus,
                           IAirplaneRepository airplaneRepository,
                           IMapper mapper) : base(notifications, bus)
 {
     _airplaneRepository = airplaneRepository;
     _mapper             = mapper;
     _bus = bus;
 }
Пример #16
0
 public AirplaneController(
     IAirplaneRepository airplaneRepository,
     IUnitOfWork unitOfWork,
     NewAirplaneCommandHandler handler,
     UpdateAirplaneCommandHandler updateHandler,
     DomainNotificationHandler domainNotificationHandler) : base(domainNotificationHandler, unitOfWork)
 {
     _airplaneRepository = airplaneRepository;
     _handler            = handler;
     _updatehandler      = updateHandler;
 }
Пример #17
0
 public AirplaneAppService(IAirplaneRepository repository,
                           AirplaneEditarUsecase editarAirplaneUsecase,
                           AirplaneIncluirUsecase incluirAirplaneUsecase,
                           AirplaneExcluirUsecase excluirAirplaneUsecase,
                           IMapper mapper)
     : base(mapper)
 {
     _repository             = repository;
     _editarAirplaneUsecase  = editarAirplaneUsecase;
     _incluirAirplaneUsecase = incluirAirplaneUsecase;
     _excluirAirplaneUsecase = excluirAirplaneUsecase;
 }
Пример #18
0
 public AirplaneAppService(IAirplaneRepository repository,
                           EditarAirplaneUsecase editarAirplaneUsecase,
                           IncluirAirplaneUsecase incluirAirplaneUsecase,
                           ExcluirAirplaneUsecase excluirAirplaneUsecase,
                           IMapper mapper)
     : base(mapper)
 {
     this._repository             = repository;
     this._editarAirplaneUsecase  = editarAirplaneUsecase;
     this._incluirAirplaneUsecase = incluirAirplaneUsecase;
     this._excluirAirplaneUsecase = excluirAirplaneUsecase;
 }
 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;
 }
Пример #20
0
 public FlightService(
     IMapper mapper,
     IFlightRepository flightRepository,
     IAirportRepository airportRepository,
     IAirplaneRepository airplaneRepository
     )
 {
     _mapper             = mapper;
     _flightRepository   = flightRepository;
     _airportRepository  = airportRepository;
     _airplaneRepository = airplaneRepository;
 }
 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;
 }
Пример #22
0
 public FlightsController(
     DataContext context,
     IAirplaneRepository airplaneRepository,
     IFlightRepository flightRepository,
     IAirportRepository airportRepository,
     IConverterHelper converterHelper)
 {
     _context            = context;
     _airplaneRepository = airplaneRepository;
     _flightRepository   = flightRepository;
     _airportRepository  = airportRepository;
     _converterHelper    = converterHelper;
 }
Пример #23
0
        public BookingService(
            IMapper mapper,
            IFlightRepository flightRepository,
            IAirplaneRepository airplaneRepository,
            IUserInfo userInfo
            )
        {
            _mapper             = mapper;
            _flightRepository   = flightRepository;
            _airplaneRepository = airplaneRepository;

            _accountId = userInfo.AccountId;
        }
Пример #24
0
        public FlightsController(IUserHelper userHelper, IFlightRepository flightRepository, ITicketRepository ticketRepository, IAirplaneRepository airplaneRepository,
                                 IDestinationRepository destinationRepository, DataContext context, IMailHelper mailHelper, IConfiguration configuration)
        {
            _userHelper            = userHelper;
            _flightRepository      = flightRepository;
            _ticketRepository      = ticketRepository;
            _airplaneRepository    = airplaneRepository;
            _destinationRepository = destinationRepository;
            _context       = context;
            _mailHelper    = mailHelper;
            _configuration = configuration;


            //Actualizar o estado dos voos
            flightRepository.UpdateFlightStatus(DateTime.Now);
        }
Пример #25
0
 public TicketsController(
     DataContext context,
     ICountryRepository countryRepository,
     IFlightRepository flightRepository,
     ITicketRepository ticketRepository,
     IAirportRepository airportRepository,
     IIndicativeRepository indicativeRepository,
     IUserHelper userHelper,
     IAirplaneRepository airplaneRepository,
     IMailHelper mailHelper)
 {
     _context              = context;
     _countryRepository    = countryRepository;
     _flightRepository     = flightRepository;
     _ticketRepository     = ticketRepository;
     _indicativeRepository = indicativeRepository;
     _userHelper           = userHelper;
     _airplaneRepository   = airplaneRepository;
     _mailHelper           = mailHelper;
     _airportRepository    = airportRepository;
 }
Пример #26
0
 public ParkingController(IAirplaneRepository airplaneRepository, IReservationRepository reservationRepository)
 {
     _airplaneRepository    = airplaneRepository;
     _reservationRepository = reservationRepository;
 }
Пример #27
0
 public AirplaneCommandHandler(IAirplaneRepository airplaneRepository, IUnitOfWork uow, IBus bus, Core.Interfaces.Handlers.IDomainNotificationHandler <DomainNotification> notifications)
     : base(uow, bus, notifications)
 {
     _airplaneRepository = airplaneRepository;
 }
Пример #28
0
 public AirplaneDetailsController(IAirplaneRepository repository)
 {
     this.repository = repository;
 }
Пример #29
0
 public AssignSeatService(IAirplaneRepository airplaneRepository, IAirplaneRecoverService airplaneRecoverService)
 {
     _airplaneRepository     = airplaneRepository;
     _airplaneRecoverService = airplaneRecoverService;
 }
 public UpdateAirplaneCommandHandler(IAirplaneRepository airplaneRepository, DomainNotificationHandler domainNotificationHandler)
 {
     _airplaneRepository        = airplaneRepository;
     _domainNotificationHandler = domainNotificationHandler;
 }