Quick Thought About The Law Of Demeter
Quick Thought About The Law Of Demeter
Submitted by jamie on Fri, 08/08/2008 - 11:43.I have a data source (it’s a spread sheet). I want to test that my system reads it in properly and that the model is populated properly. Like a good object should, my key object knows how to populate itself from a Worksheet Object or a File. It’s the reading of the sheet I want to test. How can I do this without breaking the law of Demeter? I.e. without exposing the state of the object to the test client (Fit and NUnit in this case) via getters?
