SSWConsulting / SSW.Rewards.Mobile

https://rewards.ssw.com.au
Apache License 2.0
29 stars 8 forks source link

♻️ API | Implement guard clauses #250

Open matt-goldman opened 2 years ago

matt-goldman commented 2 years ago

SSW Rewards was built from the Clean Architecture template. It originally used an older template, and in newer versions, Guard Clauses has been introduced.

We can implement Guard Clauses in this solution, which will help clean up the code.

matt-goldman commented 10 months ago

Consider rebuilding the API from https://github.com/SSWConsulting/SSW.CleanArchitecture instead

cc: @danielmackay @william-liebenberg @wicksipedia

danielmackay commented 10 months ago

@matt-goldman - although in the CA template we rolled our own guard clauses, I would also consider using the package from Ardialis: https://github.com/ardalis/GuardClauses

The package can be a good starting point and extended with extra guards if needed.