use the 'from' keyword to work with collections, or flatten your objects.
Mark
JimmyM wrote:
Hi,
I have a number of complex business objects which contain lists of objects
which also contain lists of objects
For example:
public class Object1 {
private List<Object2> objList;
private Object3 object3;
}
public class Object2 {
private List<Object4> objList2;
private Object5 object5;
}
How would I test my rules against all the objects in objList2?