Skip to main content
Version: v1.1.x

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

PageWhat you'll learn
IntrospectorHow Fixture Monkey creates objects — choosing the right introspector for your class structure
FixtureMonkeyThe main entry class — all generation methods (giveMeOne, giveMeBuilder, giveMe, etc.)
Complex TypesGenerating generics (List<T>), self-referencing types, and nested objects
Instantiate MethodsControlling which constructor or factory method is used
Interface TypesGenerating implementations for interfaces, abstract classes, and sealed classes
Custom IntrospectorBuilding your own introspector for special cases