public void Test_TakeOff()
        {
            IPassenger passenger = new Passenger("Doko");
            IBag       bag       = new Bag(passenger, new IItem[] { new Laptop() });

            passenger.Bags.Add(bag);
            airplane.AddPassenger(passenger);

            string result   = fController.TakeOff();
            string expected = "Successfully transported 1 passengers from Sofia to Vidin.\r\nConfiscated bags: 0 (0 items) => $0";

            Assert.That(result.Contains(expected), Is.True);
        }
        public void TakeOffShouldSuccessfullyDoAFlight()
        {
            ITrip trip = new Trip("Bolivia", "Urugay", new LightAirplane());

            airport.AddTrip(trip);

            string expectedResult = ":\r\nSuccessfully transported 0 passengers from Bolivia to Urugay.\r\nConfiscated bags: 0 (0 items) => $0";
            string actuaResult    = flightController.TakeOff();

            bool contains = actuaResult.Contains(expectedResult);

            Assert.IsTrue(contains);
        }
        public void SuccessfulTrip()
        {
            var sb         = new StringBuilder();
            var passengers = new[]
            {
                new Passenger("Ivan"),
                new Passenger("Ivan2"),
                new Passenger("Ivan3"),
                new Passenger("Ivan4"),
                new Passenger("Ivan5"),
                new Passenger("Ivan6"),
            };

            var airplane = new LightAirplane();

            foreach (var passenger in passengers)
            {
                airplane.AddPassenger(passenger);
            }

            var trip = new Trip("Sofia", "London", airplane);

            airport.AddTrip(trip);

            var bag = new Bag(passengers[1], new[] { new Colombian() });

            passengers[1].Bags.Add(bag);

            var completedTrip = new Trip("Sofia", "Varna", new LightAirplane());

            completedTrip.Complete();

            airport.AddTrip(completedTrip);

            var actualResult = flightController.TakeOff();

            sb.AppendLine("SofiaLondon1:");
            sb.AppendLine("Overbooked! Ejected Ivan2");
            sb.AppendLine("Confiscated 1 bags ($50000)");
            sb.AppendLine("Successfully transported 5 passengers from Sofia to London.");
            sb.Append("Confiscated bags: 1 (1 items) => $50000");

            Assert.That(actualResult, Is.EqualTo(sb.ToString()));
            Assert.That(trip.IsCompleted, Is.True);
        }