static void Main(string[] args) { //Første version IRoutePlanner planner = new RoutePlanner(); PrepareForPlanning(planner); //Anden version - brug af Proxy IRoutePlanner plannerProxy = new RoutePlannerProxy(); PrepareForPlanning(plannerProxy); }
private void InitPlanner() { _planner = _planner ?? new RoutePlanner(); }
public RoutePlannerProxy() { _planner = null; }