I am creating a base class (or base entity) since all my database tables will have a companyID
field.
In my unit tests, I have to make sure the companyID
value is correct.
If I am returning a list of objects, all the companyID
s should be the same.
Is there a generic way of me writing a test that will loop through all the values, that I could use across all my objects? (they will all inherit from a base class that will have a companyID
property).