You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -428,6 +428,35 @@ YES! And ObjectFiller can handle that. Just say **```.Register<T>()```** after y
428
428
429
429
It is also really easy possible to fill **```Dictionary```** and **```Lists```** objects.
430
430
431
+
###Detect Circular Dependencies
432
+
433
+
The ObjectFiller is able to detect circulare references. You can specify that the ObjectFiller will ignore the circular references or throw an exception when a circular reference occurs.
Here you can see that a parent has a ```List<Children>``` and the ```Children``` has a ```Parent``` - a circular reference. The ObjectFiller detects that and doesn't fill the circular object anymore! When you call ```.Setup().OnCircularReference().ThrowException(true);``` with the ```true``` flag it will raise an exception instead of just ignore the circular reference.
0 commit comments