public void RunTests() { commutestrategy.CommuteToDestination(); // Personel Car default commutestrategy = new LyftCar(); commutestrategy.CommuteToDestination(); commutestrategy = new UberCar(); commutestrategy.CommuteToDestination(); commutestrategy = new Walk(); commutestrategy.CommuteToDestination(); }
public StragetyClient() { // default to commuting by personel car commutestrategy = new PersonelCar(); }