Exemple #1
0
        public void DisembarkAll(Place currentPlace, Place destinyPlace)
        {
            if (!CurrentPlaceHasSmartFortwo(currentPlace))
            {
                throw new Exception("The smart fortwo was not found!");
            }

            var crewMembers = currentPlace.DisembarkAllFromSmartFortwo();

            currentPlace.Board(crewMembers.ToList());

            _tripInformerService.ShowDisembarkingInfo(crewMembers);

            _tripInformerService.ShowTripStateInfo(currentPlace, destinyPlace);
        }
Exemple #2
0
        public void DisembarkDriver(Place currentPlace, Place destinyPlace)
        {
            if (!CurrentPlaceHasSmartFortwo(currentPlace))
            {
                throw new Exception("The smart fortwo was not found!");
            }

            var driver = currentPlace.DisembarkDriverFromSmartFortwo();

            currentPlace.Board(driver);

            _tripInformerService.ShowDisembarkingInfo(new List <CrewMember> {
                driver
            });

            _tripInformerService.ShowTripStateInfo(currentPlace, destinyPlace);
        }