private static void DoStraightRoutes(Graph graph, List<IResponse> responses) { var routeFinder = new RouteFinder(graph); responses.Add(routeFinder.FindRoute(new RouteRequest('A', 'B', 'C'))); responses.Add(routeFinder.FindRoute(new RouteRequest('A', 'D'))); responses.Add(routeFinder.FindRoute(new RouteRequest('A', 'D', 'C'))); responses.Add(routeFinder.FindRoute(new RouteRequest('A', 'E', 'B', 'C', 'D'))); responses.Add(routeFinder.FindRoute(new RouteRequest('A', 'E', 'D'))); }
private static void DoMaxTripFinder(Graph graph, List<IResponse> responses) { var maxTripFinder = new MaxStopTripFinder(graph); responses.Add(maxTripFinder.FindTrip('C', 'C')); }
private static void DoNumberOfRoutesFinder(Graph graph, List<IResponse> responses) { var numberOfRoutesFinder = new NumberOfRoutesFinder(graph); responses.Add(numberOfRoutesFinder.FindRoutes('C', 'C').WithDistanceLessThan(30)); }
private static void DoExactTripFinder(Graph graph, List<IResponse> responses) { var exactTripFinder = new ExactStopTripFinder(graph); responses.Add(exactTripFinder.FindTrip('A', 'C')); }