SSW.Rewards.Mobile icon indicating copy to clipboard operation
SSW.Rewards.Mobile copied to clipboard

♻️ API | Implement guard clauses

Open matt-goldman opened this issue 2 years ago • 2 comments

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 avatar Jun 08 '22 23:06 matt-goldman

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

cc: @danielmackay @william-liebenberg @wicksipedia

matt-goldman avatar Oct 30 '23 05:10 matt-goldman

@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.

danielmackay avatar Nov 13 '23 22:11 danielmackay