Ejemplo n.º 1
0
        public void RunTests()
        {
            commutestrategy.CommuteToDestination(); // Personel Car default

            commutestrategy = new LyftCar();
            commutestrategy.CommuteToDestination();

            commutestrategy = new UberCar();
            commutestrategy.CommuteToDestination();

            commutestrategy = new Walk();
            commutestrategy.CommuteToDestination();
        }
Ejemplo n.º 2
0
 public StragetyClient()
 {
     // default to commuting by personel car
     commutestrategy = new PersonelCar();
 }