Produce a basic web application (written in C# - Visual Studio 2015 - preferably
ASP.NET MVC) and a set of unit tests that allow the following:
We require you to develop a simple solution which will help provide our customers
with information about the trips, we can offer. In particular, we have demand from
our customers to calculate the distance along a specific route and the shortest
the route between two towns.
Allow the user to enter a number of stops and then print the distance involved in
traversing the route. If the route cannot be traversed because it is invalid then
print out an error message.
Test data: A-B-C, A-E-B-C-D, A-D, A-D-C, A-E-D
Allow the user to enter a start and end station and optionally a maximum or exact
number of “stops” along the way. The screen should calculate and print out the
number of possibilities that exist.
Test data: C to C with a maximum of 3 stops
What is the shortest route?:
Allow the user to enter a start and end station (which could be the same station)
and then print out the length and details of the shortest route (in terms of distance
to travel). Test data: B to B, A to C
It represented as a directed graph where a node represents a station and an edge represents a route between two stations. The weighting of the edge represents the distance between the two towns. A given route will never appear more than once, and for a given route, the starting and ending town will not be the same town. The towns are codenamed using the letters of the alphabet from A to E. A route between two towns (A to B) with a distance of 5 is represented as AB5.
For the test data you should use the set:
AB5, BC4, CD8, DC8, DE6, AD5, CE2, EB3, AE7