コード例 #1
0
ファイル: UnitTest1.cs プロジェクト: HagaiReiner/Test2
 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);
 }
コード例 #2
0
ファイル: AirportHub.cs プロジェクト: HagaiReiner/Test2
 public void GetData()
 {
     planesManager.GetPlanes(UpdatePlanes);
     stationsManager.GetStations(UpdateStations);
 }
コード例 #3
0
        public IHttpActionResult Get()
        {
            var stations = _StationsService.GetStations();

            return(Ok(stations));
        }