//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; }
public AirplaneService(IAirplaneRepository airPlaneRepository, IMapper mapper) { AirplaneRepository = airPlaneRepository ?? throw new ArgumentNullException(nameof(airPlaneRepository)); Mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); }
public AirplaneExcluirUsecase(IAirplaneRepository repository, AirplaneValidarExcluir airplaneValidarExcluir, IUnitOfWork uow) : base(uow) { _repository = repository; _airplaneValidarExcluir = airplaneValidarExcluir; }
public AirplaneEditarUsecase(IAirplaneRepository repository, AirplaneValidarEditar airplaneValidarEditar, IUnitOfWork uow) : base(uow) { _repository = repository; _airplaneValidarEditar = airplaneValidarEditar; }
public HomeController(IAirplaneClient airplanes, IAirplaneRepository airplaneRepository, ITSAClient airportClient, IAirportCodeClient airportCodeClient) { _airplanes = airplanes; _airplaneRepository = airplaneRepository; _airportClient = airportClient; _airportCodeClient = airportCodeClient; }
public AirplaneValidarEditar(IAirplaneRepository repository, AirplaneValidarCodigoRepetido airplaneValidarCodigoRepetido) : base(repository) { _repository = repository; _airplaneValidarCodigoRepetido = airplaneValidarCodigoRepetido; }
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; }
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); }
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; }
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; }
public AirplaneController(IDomainNotificationHandler <DomainNotification> notifications, IBus bus, IAirplaneRepository airplaneRepository, IMapper mapper) : base(notifications, bus) { _airplaneRepository = airplaneRepository; _mapper = mapper; _bus = bus; }
public AirplaneController( IAirplaneRepository airplaneRepository, IUnitOfWork unitOfWork, NewAirplaneCommandHandler handler, UpdateAirplaneCommandHandler updateHandler, DomainNotificationHandler domainNotificationHandler) : base(domainNotificationHandler, unitOfWork) { _airplaneRepository = airplaneRepository; _handler = handler; _updatehandler = updateHandler; }
public AirplaneAppService(IAirplaneRepository repository, AirplaneEditarUsecase editarAirplaneUsecase, AirplaneIncluirUsecase incluirAirplaneUsecase, AirplaneExcluirUsecase excluirAirplaneUsecase, IMapper mapper) : base(mapper) { _repository = repository; _editarAirplaneUsecase = editarAirplaneUsecase; _incluirAirplaneUsecase = incluirAirplaneUsecase; _excluirAirplaneUsecase = excluirAirplaneUsecase; }
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; }
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; }
public FlightsController( DataContext context, IAirplaneRepository airplaneRepository, IFlightRepository flightRepository, IAirportRepository airportRepository, IConverterHelper converterHelper) { _context = context; _airplaneRepository = airplaneRepository; _flightRepository = flightRepository; _airportRepository = airportRepository; _converterHelper = converterHelper; }
public BookingService( IMapper mapper, IFlightRepository flightRepository, IAirplaneRepository airplaneRepository, IUserInfo userInfo ) { _mapper = mapper; _flightRepository = flightRepository; _airplaneRepository = airplaneRepository; _accountId = userInfo.AccountId; }
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); }
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; }
public ParkingController(IAirplaneRepository airplaneRepository, IReservationRepository reservationRepository) { _airplaneRepository = airplaneRepository; _reservationRepository = reservationRepository; }
public AirplaneCommandHandler(IAirplaneRepository airplaneRepository, IUnitOfWork uow, IBus bus, Core.Interfaces.Handlers.IDomainNotificationHandler <DomainNotification> notifications) : base(uow, bus, notifications) { _airplaneRepository = airplaneRepository; }
public AirplaneDetailsController(IAirplaneRepository repository) { this.repository = repository; }
public AssignSeatService(IAirplaneRepository airplaneRepository, IAirplaneRecoverService airplaneRecoverService) { _airplaneRepository = airplaneRepository; _airplaneRecoverService = airplaneRecoverService; }
public UpdateAirplaneCommandHandler(IAirplaneRepository airplaneRepository, DomainNotificationHandler domainNotificationHandler) { _airplaneRepository = airplaneRepository; _domainNotificationHandler = domainNotificationHandler; }