public UserLocationController() { client = new HttpClient(); apiService = new APIService(client); distanceService = new DistanceService(); userService = new UserService(distanceService); }
public RouteStopService(IDistanceService distanceService, OptimizerConfiguration configuration, IRouteStopDelayService routeStopDelayService, IJobNodeService jobNodeService) { _distanceService = distanceService; _configuration = configuration; _routeStopDelayService = routeStopDelayService; _jobNodeService = jobNodeService; }
public ParksLocatorService(IParksLocatorRepository parksLocatorRepository, IGoogleApiClient googleApiClient, IDistanceService distanceService) { _googleApiClient = googleApiClient; _parksLocatorRepository = parksLocatorRepository; _distanceService = distanceService; }
public FlightService( IFlightsRepository flightsRepository, IMappingService mappingService, IDistanceService distanceService, IFlightInformationService flightInformationService) { _flightsRepository = flightsRepository; _mappingService = mappingService; _distanceService = distanceService; _flightInformationService = flightInformationService; }
public MapForm(ITrackerService trackerService, IMapService mapService, IAPIMapperService converter, IDistanceService distanceService, ISpeedService speedService) { InitializeComponent(); this.trackerService = trackerService; this.mapService = mapService; this.converter = converter; this.distanceService = distanceService; this.speedService = speedService; this.mapService.PositionUpdated += MapService_PositionUpdated; }
public LegacyImportService(ILocationService locationService, IStopActionService stopActionService, IJobService jobService, IRouteStopService routeStopService, IGeocodeService geocodeService, IJobGroupService jobGroupService, IDriverService driverService, ISyncLogEntryService syncLogEntryService, IDistanceService distanceService) { _locationService = locationService; _stopActionService = stopActionService; _jobService = jobService; _routeStopService = routeStopService; _geocodeService = geocodeService; _jobGroupService = jobGroupService; _driverService = driverService; _syncLogEntryService = syncLogEntryService; _distanceService = distanceService; _validationService = new ValidationService( new[] { new TimeSpan(11, 11, 0) } ); }
public DistanceController(IDistanceService distanceService, ILogger <DistanceController> logger) : base(distanceService, logger) { _distanceService = distanceService; _logger = logger; }
public MeasureController(IDistanceService distanceService) { Ensure.That(distanceService).IsNotNull(); _distanceService = distanceService; }
public DistanceController(IDistanceService distanceService, IMapper mapper, IHttpContextAccessor httpContextAccessor) { _distanceService = distanceService; _mapper = mapper; _caller = httpContextAccessor.HttpContext.User; }
public UserService(IDistanceService distanceService) { this.distanceService = distanceService; }
public DistanceController(IDistanceService distanceService, IGraphService graphService, ILogger <DistanceController> logger) { _distanceService = distanceService; _graphService = graphService; _logger = logger; }
public DistanceServiceTests() { _service = new DistanceService.Application.Services.DistanceService(); }
public GetDistanceBetweenAirportsQueryHandler(IAirportService airportService, IDistanceService distanceService) { _airportService = airportService ?? throw new ArgumentNullException(nameof(airportService)); _distanceService = distanceService ?? throw new ArgumentNullException(nameof(distanceService)); }
public DistanceController(IPointRepository pointRepository, IDistanceService distanceService) { this.pointRepository = pointRepository; this.distanceService = distanceService; }
public DistanceController(IDistanceService distanceService, IMapper mapper) { _distanceService = distanceService; _mapper = mapper; }
public CachedDistanceService(IDistanceService distanceService) { _distanceService = distanceService; _dictionary = new ConcurrentDictionary <int, TripLength>(); }
public DistanceController(IDistanceService distanceService) { this._distanceService = distanceService; }
public DistanceController(IDistanceService distanceService) => _distanceService = distanceService;
public JobNodeService(IDistanceService distanceService) { _distanceService = distanceService; }
public SuperDistanceService(IMapperService mapperService, ILocationDistanceService locationDistanceService, IDistanceService fallbackDistanceService) { _mapperService = mapperService; _locationDistanceService = locationDistanceService; _fallbackDistanceService = fallbackDistanceService; }
/// <summary> /// Validates Job based on RouteStops /// </summary> /// <param name="job"></param> /// <returns></returns> public ValidationResult ValidateJob(PAI.FRATIS.SFL.Domain.Orders.Job job, bool validateLocations, IDistanceService distanceService) { var optimizationJob = new Drayage.Optimization.Model.Orders.Job(); try { job.RouteStops = job.RouteStops.OrderBy(p => p.SortOrder).ToList(); _mapDomainService.MapDomainToModel(job, optimizationJob, null); } catch (Exception ex) { return(new ValidationResult() { Successful = false, Errors = new List <string>() { "Invalid Route Stop" } }); } var result = _validationService.ValidateJob(optimizationJob, validateLocations, distanceService); try { return(new ValidationResult() { Successful = result.Successful, Errors = result.Errors }); } catch (Exception ex) { throw new Exception("Could not map ValidationResult using Automapper - verify AutoMapper profile loaded and configured correctly", ex); } }