csharp-analyzer icon indicating copy to clipboard operation
csharp-analyzer copied to clipboard

Add feature for constants exercise

Open mikedamay opened this issue 4 years ago • 0 comments

Task 5 of the constants exercise is to "Ensure that the developers cannot be tampered with". The intention here is to encourage the student to wrap the developers dictionary in an instance of ReadOnlyDictionary<string, Identity> in the Authenticator.GetDevelopers() method and to return that type or IReadOnlyDictionary<string, Identity> from the method.

This concept is expressed elsewhere as "preventing code circumventing the published or formal API of a class".

mikedamay avatar Aug 01 '20 05:08 mikedamay