static void Main(string[] args) { DisplayTitle(); if (args.Length != 1) { DisplayUsage(); WaitForKeyPress(); return; } IStreetSpecificationReader fileReader = new StreetSpecificationFileReader(args[0]); ITownPlanner townplanner = TownPlanner.Create(fileReader); townplanner.LoadStreetSpecification(); var routeplanner = RoutePlanner.Create(townplanner); DisplayTownPlanningReport(townplanner); DisplayApproachOneReport(routeplanner); DisplayApproachTwoReport(routeplanner); WaitForKeyPress(); }
private void GivenARoutePlanner() { var townPlanner = TownPlanner.Create(_streetSpecificationReader); townPlanner.LoadStreetSpecification(); _routeplanner = RoutePlanner.Create(townPlanner); }
private void GivenADefaultTownPlanner() { var townPlanner = TownPlanner.Create(new StreetSpecificationFileReader("street1.txt")); townPlanner.LoadStreetSpecification(); _routePlanner = RoutePlanner.Create(townPlanner); }