Ejemplo n.º 1
0
 public ReportingService(
     ITripRepository tripRepository,
     ITrackingPointRepository trackingPointRepository,
     IGeoFenceUpdateRepository geoFenceUpdateRepository)
 {
     this.tripRepository           = tripRepository.ThrowIfNull(nameof(tripRepository));
     this.trackingPointRepository  = trackingPointRepository.ThrowIfNull(nameof(trackingPointRepository));
     this.geoFenceUpdateRepository = geoFenceUpdateRepository.ThrowIfNull(nameof(geoFenceUpdateRepository));
 }
        public PersistenceModule(
            ITrackingPointRepository trackingPointRepository,
            ITripRepository tripRepository,
            ILocationRepository locationRepository,
            string bingMapsKey)
        {
            BingMapsSDSToolkit.InternalSettings.ClientApi = "bingmapsfleettracker";

            this.trackingPointRepository =
                trackingPointRepository.ThrowIfNull(nameof(trackingPointRepository));

            this.tripRepository =
                tripRepository.ThrowIfNull(nameof(tripRepository));

            this.locationRepository =
                locationRepository.ThrowIfNull(nameof(locationRepository));

            this.bingMapsKey = bingMapsKey;
        }
Ejemplo n.º 3
0
 public PointLoaderModule(ITrackingPointRepository trackingPointRepository)
 {
     this.trackingPointRepository =
         trackingPointRepository.ThrowIfNull(nameof(trackingPointRepository));
 }