public TrafficController(
     ILogger <TrafficController> logger,
     IVehicleStateRepository repository,
     ISpeedingViolationCalculator speedingViolationCalculator)
 {
     _logger = logger;
     _repo   = repository;
     _speedingViolationCalculator = speedingViolationCalculator;
     _roadId = speedingViolationCalculator.GetRoadId();
 }
Ejemplo n.º 2
0
 public TrafficController(
     ILogger <TrafficController> logger,
     HttpClient httpClient,
     IVehicleStateRepository vehicleStateRepository,
     ISpeedingViolationCalculator speedingViolationCalculator)
 {
     _logger                      = logger;
     _httpClient                  = httpClient;
     _vehicleStateRepository      = vehicleStateRepository;
     _speedingViolationCalculator = speedingViolationCalculator;
     _roadId                      = speedingViolationCalculator.GetRoadId();
 }