public void RegisterFlightAndRetriveIt()
        {
            // Arrange
            var firstFlight = new Flight(flightName);

            // Act
            _controlTower.RegisterFlight(firstFlight);
            var flightLoaded = _controlTower.GetFlight(flightName);

            // Assert
            flightLoaded.Should().Be(firstFlight);
        }
Esempio n. 2
0
        public void WhenAUserEntersANewFlightCalledOnSystem(string flightName)
        {
            var flight = new Flight(flightName);

            flight.RegisterDepartureAirport("departure_airport", 0.0, 0.0);
            flight.RegisterDestinationAirport("destination_airport", 0.0, 0.0);
            _currentControlTower.RegisterFlight(flight);
        }
 public void Save(IFlight flight)
 {
     _controlTower.RegisterFlight(flight);
 }
Esempio n. 4
0
 public void GivenIsRegisteredInControlTowerLike(string flightName)
 {
     _currentFlight.Rename(flightName);
     _currentControlTower.RegisterFlight(_currentFlight);
 }