public void TestAddPlaneToQ() { mockRepo.LoadHistory(); planesManager.GetPlanes(null); stationManager.GetStations(null); int i = 5; Arrival arrival = new Arrival() { EstimatedArrivalTime = DateTime.Now.AddMinutes(1), Id = i }; Departure departure = new Departure() { EstimatedDepartureTime = DateTime.Now.AddMinutes(2), Id = i }; Plane plane = new Plane() { FlightNumber = "mockPlane", IsLanded = false, EstimatedArrivalTime = arrival, EstimatedDepartureTime = departure }; Plane testPlane = planesManager.CreatePlane(plane); }
public void GetData() { planesManager.GetPlanes(UpdatePlanes); stationsManager.GetStations(UpdateStations); }
public IHttpActionResult Get() { var stations = _StationsService.GetStations(); return(Ok(stations)); }