Пример #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();
        }
Пример #2
0
 public StragetyClient()
 {
     // default to commuting by personel car
     commutestrategy = new PersonelCar();
 }