public TimeTableController(ITimeTableRepository timeTableRepository, IPierRepository pierRepository, IStopRepository stopRepository, IRouteRepository routeRepository)
 {
     this.timeTableRepository = timeTableRepository;
     this.pierRepository = pierRepository;
     this.stopRepository = stopRepository;
     this.routeRepository = routeRepository;
 }
Exemplo n.º 2
0
 public UpdateRideRequestCommandHandler(IRideRequestRepository rideRequestRepository,
                                        IUnitOfWork unitOfWork,
                                        IStopRepository stopRepository)
 {
     _rideRequestRepository = rideRequestRepository;
     _unitOfWork            = unitOfWork;
     _stopRepository        = stopRepository;
 }
 public UnitOfWork(TripContext context, ILogger <TripRepository> tripLogger, ILogger <StopRepository> stopLogger)
 {
     _context    = context;
     _tripLogger = tripLogger;
     _stopLogger = stopLogger;
     Trips       = new TripRepository(_context, _tripLogger);
     Stops       = new StopRepository(_context, _stopLogger);
 }
Exemplo n.º 4
0
        public DataResolver(IRepoManager repoManager, IStopResolver stopResolver)
        {
            _repoManager  = repoManager ?? throw new ArgumentNullException(nameof(repoManager));
            _stopResolver = stopResolver ?? throw new ArgumentNullException(nameof(stopResolver));

            _positionEntryRepository = _repoManager.PositionEntryRepository;
            _trackEntryRepository    = _repoManager.TrackEntryRepository;
            _stopVisitRepository     = _repoManager.StopVisitRepository;
            _stopRepository          = _repoManager.StopRepository;

            _accuracy = 10000;
        }
Exemplo n.º 5
0
        public List <StopVisit> StopsBetween(DateTimeOffset begin, DateTimeOffset end)
        {
            IStopVisitRepository svRepo = _repoManager.StopVisitRepository;
            IStopRepository      sRepo  = _repoManager.StopRepository;

            var visits = svRepo.BetweenDates(begin, end).ToList();

            foreach (StopVisit v in visits)
            {
                v.Stop = sRepo.Get(v.StopId);
            }

            return(visits);
        }
Exemplo n.º 6
0
        public UploadController(IStopRepository stopRepository)
        {
			this.stopRepository = stopRepository;
        }
Exemplo n.º 7
0
        public HomeController(IStopRepository stopRepository)
        {
			this.stopRepository = stopRepository;
        }
Exemplo n.º 8
0
 public StopService(IStopRepository stopRepository)
 {
     _stopRepository = stopRepository;
 }
        public GtfsServiceController(IStopRepository stopRepository)
        {
			this.stopRepository = stopRepository;
        }
Exemplo n.º 10
0
 public WebApiController(IStopRepository notatweetRepository)
 {
     this._notatweetRepository = notatweetRepository;
 }
Exemplo n.º 11
0
 public StopBus(IStopRepository stopRepo)
 {
     _stopRepo = stopRepo;
     _sortPropertyMappingService = new StopSortPropertyMappingService();
     _typeHelperService          = new TypeHelperService();
 }