Using C#, I need a class called User that has a username, password, active flag, first name, last name, full name, etc.
There should be methods to authenticate and save a user. Do I just write a test for the methods? And do I even need to worry about testing the properties since they are .Net’s getter and setters?
Many great responses to this are also on my question: ‘Beginning TDD – Challenges? Solutions? Recommendations?‘
May I also recommend taking a look at my blog post (which was partly inspired by my question), I have got some good feedback on that. Namely:
I hope this means we can move on from ‘getters and setters’ 🙂