Use the Windows or Mac with dotnet 5.0 installed: https://dotnet.microsoft.com/download
- Clone the repository:
git clone git@github.com:shishirajm/UserLookup.git
- Navigate to UserLookup:
cd UserLookup
- Run dotnet test:
dotnet test
- Run the Console Project and follow prompts:
dotnet run -p ./src/UserLookup.Console
- Current payload structure of repeated Id is valid.
- All Gender values are considered valid.
- Though Ids are repeated (which is usually not the case) in JSON, nothing is discarded. Search by Id returns the first one.
- Gender with M and F are considered Male and Female respectively. Gender without M or F not accounted for either Male or Female.
- Caching implementation is fundamental, and it caches the whole API response. Based on how things would grow, the caching can be tuned.
- For Console display haven't spent much time. It might feel basic.
- More validations can be added after the API records are read.
- There is a scope for adding hundreds of unit tests. In the interest of time, its skipped. Added a few sample tests.