public void Test8()
        {
            var passenger1 = new Passenger("Pesho");
            var passenger2 = new Passenger("Gosho");
            var passenger3 = new Passenger("CHefo");
            var passenger4 = new Passenger("Aleksandar");
            var passenger5 = new Passenger("Vankata");
            var passenger6 = new Passenger("Niki");
            var airport    = new Airport();
            var airplane   = new LightAirplane();

            airplane.AddPassenger(passenger1);
            airplane.AddPassenger(passenger2);
            airplane.AddPassenger(passenger3);
            airplane.AddPassenger(passenger4);
            airplane.AddPassenger(passenger5);
            airplane.AddPassenger(passenger6);
            var item  = new Jewelery();
            var items = new List <Item>();

            items.Add(item);
            var bag = new Bag(passenger1, items);

            passenger1.Bags.Add(bag);
            airport.AddConfiscatedBag(bag);
            var trip = new Trip("Peshtera", "Sofia", airplane);

            airport.AddTrip(trip);
            var flightController = new FlightController(airport);

            flightController.TakeOff();

            Assert.AreEqual(airport.ConfiscatedBags.Count, 1);
        }
        public void TestWithConfiscatedBags()
        {
            IAirport airport = new Airport();

            IAirplane    airplane   = new LightAirplane();
            IPassenger   passenger  = new Passenger("Pesho");
            IPassenger   passenger2 = new Passenger("Kolio");
            IPassenger   passenger3 = new Passenger("Gosho");
            IPassenger   passenger4 = new Passenger("Kiro");
            IPassenger   passenger5 = new Passenger("Ganio");
            IPassenger   passenger6 = new Passenger("Penka");
            IItem        item       = new Toothbrush();
            IItem        item2      = new Jewelery();
            IItem        item3      = new Colombian();
            List <IItem> items      = new List <IItem>();

            items.Add(item);
            items.Add(item2);
            items.Add(item3);
            IBag bag = new Bag(passenger, items);

            airplane.AddPassenger(passenger);
            airplane.AddPassenger(passenger2);
            airplane.AddPassenger(passenger3);
            airplane.AddPassenger(passenger4);
            airplane.AddPassenger(passenger5);
            airplane.AddPassenger(passenger6);
            ITrip trip = new Trip("Sofia", "London", airplane);

            airport.AddTrip(trip);
            airport.AddConfiscatedBag(bag);

            FlightController flight = new FlightController(airport);

            flight.TakeOff();

            var actualResult = trip.IsCompleted;

            Assert.IsTrue(actualResult);
        }