public void publish_vehicle_signal_transactions_to_rabbitmq() { // PingVehicleInQueue pushes signals data to the queue. var vehiclesSignalData = _contextRepo.PingVehicleInQueue(_contextRepo.GenerateSignal()); Assert.IsNotNull(vehiclesSignalData); }
public IEnumerable <VehicleTransModel> GetConnectionStatusTransById(int status = -1) { try { _contextRepo.PingVehicleInQueue((VehicleStatusEnum)status); return(_mqServiceBus.Subscribe <List <VehicleTransModel> >("PingSignal_VehicleStatusTrans")); } catch (Exception ex) { _logger.Log(LogLevel.Error, ex.Message, "VehicleConnectionStatusServiceController"); return(default(IEnumerable <VehicleTransModel>)); } }
public void ping_vehicle_status_only_on() { var vehicleList = _contextRepo.PingVehicleInQueue(Enums.VehicleStatusEnum.On); vehicleList.ForEach(v => { Assert.AreEqual(v.Status, "On"); }); }