public AcceptedPassengerBookingProposalCommandHandler( IPassengerBookingProposalRepository passengerBookingProposalRepository, IDailyRouteRepository dailyRouteRepository) { _passengerBookingProposalRepository = passengerBookingProposalRepository; _dailyRouteRepository = dailyRouteRepository; }
public static async Task <DailyRoute> GetOrFailAsync(this IDailyRouteRepository dailyRouteRepository, Guid id) { var dailyRoute = await dailyRouteRepository.GetAsync(id); if (dailyRoute == null) { throw new ArgumentNullException($"DailyRoute with {id} not exist"); } return(dailyRoute); }
public PassengerBookingService( IPassengerBookingProposalRepository passengerBookingProposalRepository, IDailyRouteRepository dailyRouteRepository, IDriverRepository driverRepository, IUserRepository userRepository, IPassengerBookingRepository passengerBookingRepository) { _passengerBookingProposalRepository = passengerBookingProposalRepository; _dailyRouteRepository = dailyRouteRepository; _driverRepository = driverRepository; _userRepository = userRepository; _passengerBookingRepository = passengerBookingRepository; }
public RemoveDailyRouteCommandHandler(IDailyRouteRepository routeRepository) { _routeRepository = routeRepository; }
public BrowseDailyRouteQueryHandler(IDailyRouteRepository routeRepository, IMapper mapper) { _routeRepository = routeRepository; _mapper = mapper; }
public DriverDailyRouteQueryHandler(IDriverRepository driverRepository, IMapper mapper, IDailyRouteRepository routeRepository) { _driverRepository = driverRepository; _mapper = mapper; _routeRepository = routeRepository; }
public GetPassengerRouteHandler(IDailyRouteRepository routeRepository, IMapper mapper) { _routeRepository = routeRepository; _mapper = mapper; }