Generating Objects
This section goes deeper into how Fixture Monkey generates objects, covering introspectors, complex types, and advanced instantiation.
Prerequisites
Make sure you've read through Getting Started and Customizing Objects first.
What's in this section
| Page | What you'll learn |
|---|---|
| Introspector | How Fixture Monkey creates objects — choosing the right introspector for your class structure |
| FixtureMonkey | The main entry class — all generation methods (giveMeOne, giveMeBuilder, giveMe, etc.) |
| Complex Types | Generating generics (List<T>), self-referencing types, and nested objects |
| Instantiate Methods | Controlling which constructor or factory method is used |
| Interface Types | Generating implementations for interfaces, abstract classes, and sealed classes |
| Custom Introspector | Building your own introspector for special cases |