Skip to content

Complex Models

antonmaju edited this page Sep 3, 2014 · 1 revision

Complex Model

NDummy is able to create complex master-detail object as long as related types are defined in spec.

However there is a limit to maximum level of depth. By default it is 3.

You can change it by setting the MaxDepth property of FactoriesConfig.

var config = new FactoriesConfig();
config.MaxDepth = 5; //limit to 5 levels

Collection Creation

NDummy will set collection-based property automatically as long as these conditions met:

  • It can be assigned with a generic list
  • Its list item has its own spec registered in FactoriesConfig.

Clone this wiki locally