public void CalculateFlightDistanceInKilometer_SameAirport_GetDistanceZero(Flight flight)
        {
            //
            // Arrange
            FlightService flightService = new FlightService(flightRepository, airportRepository, unitOfWork);
            //
            // Act
            var result = flightService.CalculateFlightDistanceInKilometer(flight);

            //
            // Assert
            Assert.Equal(0, result);
        }
        public void CalculateFlightDistanceInKilometer_NearFlight_GetDistance()
        {
            //
            // Arrange
            Flight        flight        = FlightsProvider.GetNearFlight();
            FlightService flightService = new FlightService(flightRepository, airportRepository, unitOfWork);
            //
            // Act
            var result = flightService.CalculateFlightDistanceInKilometer(flight);

            //
            // Assert
            Assert.Equal(561, Math.Round(result));
        }
        public void CalculateFuelConsumptionInLiter_NearFlight_GetFuelConsumption()
        {
            //
            // Arrange
            Flight          flight          = FlightsProvider.GetNearFlight();
            AircraftOptions aircraftOptions = new AircraftOptions()
            {
                FuelConsumptionInLiterPerKilometer = 3.628, TakeoffFuelConsumptionInLiter = 2.392
            };
            FlightService flightService = new FlightService(flightRepository, airportRepository, unitOfWork);

            flight.DistanceInKilometer = flightService.CalculateFlightDistanceInKilometer(flight);
            //
            // Act
            var result = flightService.CalculateFuelConsumptionInLiter(flight, aircraftOptions);

            //
            // Assert
            Assert.Equal(2037, Math.Round(result));
        }