public void PutPassengerInSmartFortwo(CrewMember passenger) { if (SmartFortwo.IsNull()) { throw new Exception(_nullSmartFortwoException); } SmartFortwo.EnterPassenger(passenger); }
public void PutDriverInSmartFortwo(CrewMember driver) { if (SmartFortwo.IsNull()) { throw new Exception(_nullSmartFortwoException); } SmartFortwo.EnterDriver(driver); }
public void PutBothInSmartFortwo(CrewMember driver, CrewMember passenger) { if (SmartFortwo.IsNull()) { throw new Exception(_nullSmartFortwoException); } SmartFortwo.EnterDriver(driver); SmartFortwo.EnterPassenger(passenger); }
public IEnumerable <CrewMember> DisembarkAllFromSmartFortwo() => SmartFortwo?.DisembarkAll() ?? throw new Exception(_nullSmartFortwoException);
public CrewMember DisembarkDriverFromSmartFortwo() => SmartFortwo?.DisembarkDriver() ?? throw new Exception(_nullSmartFortwoException);
public List <CrewMember> GetSmartFortwoCrewMembers() => SmartFortwo?.GetCrewMembers() ?? throw new Exception(_nullSmartFortwoException);
public void SetSmartFortwo(SmartFortwo smartFortwo) => SmartFortwo = smartFortwo;