Exemplo n.º 1
0
 public Passenger(EPassengerType passengerType, IDriveBehavior driveBehavior)
 {
     Id = Guid.NewGuid();
     _passegerTypeTranslator = new PassengerTypeTranslator();
     _passengerType          = passengerType;
     _driveBehavior          = driveBehavior;
 }
Exemplo n.º 2
0
 public PassengerBuilder Isdriver()
 {
     _driveBehavior = new Drive();
     return(this);
 }
Exemplo n.º 3
0
 public PassengerBuilder()
 {
     _driveBehavior = new Drive();
     _passengerType = EPassengerType.Pilot;
 }