Esempio n. 1
0
        public void GetFlightPlanById_ReturnFlighPlan()
        {
            FlightPlanController fpController = new FlightPlanController(_mockRepo);
            var expected = _mockRepo.GetFlightPlanByIdOutput;

            var            answer = fpController.GetFlightPlanByIdAsync("KOKO68");
            OkObjectResult result = (OkObjectResult)answer.Result.Result;
            var            actual = result.Value;

            Assert.AreEqual(actual, expected, "Invalid Answer in GetFlightPlanByIdAsync method.");
        }