AggregateTestFixture .registerIgnoredField on nested objects


I was wondering if we could use the AggregateTestFixture.registerIgnoredField method to exclude fields in nested objects.

We first had our test like this:


Hi Tom,

you should be able to ignore any field in a hierarchy. Note that the first parameter is not the class of the event that has the field, but the class that declares the field. So if you have nested objects in events, mention the class that contains the field.

Nested objects in Events aren’t weird or wrong, but you’d generally want to be careful. You don’t want to turn you events in to models of themselves. Any change you make here is more difficult to push through, as events are generally considered part of you public API.