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

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

            // Assert
            flightLoaded.Should().Be(firstFlight);
        }
 public IFlight GetFlight(string flightName)
 {
     return(_controlTower.GetFlight(flightName));
 }
예제 #3
0
        public void ThenTheFlightCalledCanBeRetrivedOnSystem(string flightName)
        {
            var flightFound = _currentControlTower.GetFlight(flightName);

            flightFound.Should().NotBeNull();
        }