Пример #1
0
 public AcceptedPassengerBookingProposalCommandHandler(
     IPassengerBookingProposalRepository passengerBookingProposalRepository,
     IDailyRouteRepository dailyRouteRepository)
 {
     _passengerBookingProposalRepository = passengerBookingProposalRepository;
     _dailyRouteRepository = dailyRouteRepository;
 }
Пример #2
0
        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;
 }
Пример #4
0
 public RemoveDailyRouteCommandHandler(IDailyRouteRepository routeRepository)
 {
     _routeRepository = routeRepository;
 }
Пример #5
0
 public BrowseDailyRouteQueryHandler(IDailyRouteRepository routeRepository, IMapper mapper)
 {
     _routeRepository = routeRepository;
     _mapper          = mapper;
 }
 public DriverDailyRouteQueryHandler(IDriverRepository driverRepository, IMapper mapper, IDailyRouteRepository routeRepository)
 {
     _driverRepository = driverRepository;
     _mapper           = mapper;
     _routeRepository  = routeRepository;
 }
Пример #7
0
 public GetPassengerRouteHandler(IDailyRouteRepository routeRepository, IMapper mapper)
 {
     _routeRepository = routeRepository;
     _mapper          = mapper;
 }