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
-[Fill Lists and Dictionaries](#fill-lists-and-dictionaries)
@@ -45,10 +46,11 @@ I will show you some examples how you can work with it.
45
46
* ...fill the public writable properties of your objects
46
47
* ...fills also all subobjects
47
48
* ...has a nice FluentAPI
48
-
* ...can handle constructor with parameters
49
-
* ...can handle IEnumerable<T> and all derivations
50
-
* ...can handle Interfaces
51
-
* ...cas handle Dictionaries
49
+
* ...handles constructors with parameters
50
+
* ...handles IEnumerable<T> and all derivations
51
+
* ...handles Interfaces
52
+
* ...handles Dictionaries
53
+
* ...handles Enumerations
52
54
* ...is highly customizable
53
55
* ...has many nice plugins
54
56
* ...is very easy to extend
@@ -245,6 +247,44 @@ The same method **```.IgnoreIt()```** is also available after you call **```.OnT
245
247
246
248
With **```SetupFor<T>```** you start a setup for another type. In the example above we define that the ```Name``` of the ```Person``` will be "John" and the ```City``` of an ```Address``` object will be "Dresden". **```SetupFor<T>```** takes an ```bool``` parameter. If this is set to **```true```** then all the settings which were made on the parent type will be set back to default. When a property is not set up, then the filler will take the setup of the parent type, except the settings which are made specially for this actual type.
247
249
250
+
###Fill objects with the IEnumerable interface
251
+
252
+
With ObjectFiller.NET you can use the IEnumerable interface to fill objects. Use it for example when you want to fill a property in a specific order with include and exclude and all the other cool stuff which IEnumerable and LINQ supports.
0 commit comments