This is a console app that calculates the number of resuply stops needed for a Star Wars spaceship to travel a given distance. The user must enter the distance in MGLTs and the app will list all the spacecrafts from SWAPI.co and the number of stops required.
The following premises were considered for the business rules
- Ships with unknown MGLT or Consumables are displayed with # of required stops as "unknown"
- Consumables measurement units:
-
- Month - 30 days
-
- Week - 7 days
-
- Year - 365 days
-
- Day - 24 hours
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
The application runs in .NET Core 3.0.1.
Just clone the app, open in Visual Studio and run the Star Waze console app. You must enter a valid decimal value for MGLT.
The unit tests were developed using xUnit. The unit testing for the Gateway layer is a ToDo :)
- .Net Core 3.0.1
- xUnit
- Visual Studio for Mac
- Vitor Cunha - Initial work - (https://github.com/vpopolin)
This project is licensed under the MIT License