Test Statuses
Solution to the Train Ticket Machine task. Application can be run using Docker. Folder src/TrainTicketMachineGui contains a graphical user interface (WPF app). GUI was created for a university project, not as part of a recruitment task. This part was made as a "quick and dirty solution", but it works 😆.
- Clone
- Run docker-compose up
- Send get request with "prefix" parameter eg.: localhost:80/Stations?prefix=Ad
- Response:
{
"stationsNames": [
"Adderley Park",
"Addiewell",
"Addlestone",
"Adisham",
"Adlington (Cheshire)",
"Adlington (Lancs)",
"Adwick"
],
"nextLetters": [
"d",
"i",
"l",
"w"
]
}- Url with station data source is sotred in appsettings.json in section InfrastructureConfig:StationsApiUrl
{
"stationsNames": [
"Adderley Park",
"Addiewell",
"Addlestone",
"Adisham",
"Adlington (Cheshire)",
"Adlington (Lancs)",
"Adwick"
],
"nextLetters": [
"d",
"i",
"l",
"w"
]
}{
"stationsNames": [
"Adderley Park"
],
"nextLetters": [
" "
]
}{
"stationsNames": [],
"nextLetters": []
}