AutoFixture A marker class, used to explicitly identify the target for Auto-properties in an graph. The only purpose of this class is to act as an easily identifiable container. This makes it easier to find the target for Auto-properties even if it is buried deep in a larger graph. Initializes a new instance of the class. The builder to decorate. After initialization is available via the property. is null. Composes the supplied builders. The builders to compose. A new instance containing as child nodes. Creates a new specimen based on a request. The request that describes what to create. A context that can be used to create other specimens. The requested specimen if possible; otherwise a instance. The can be any object, but will often be a or other instances. Returns the decorated builder as a sequence. wrapped in an Iterator. Returns an enumerator that iterates through a collection. An object that can be used to iterate through the collection. Gets the builder decorated by this instance. The builder originally supplied via the constructor. A marker class, used to explicitly identify the root of the behaviors role in an graph. The only purpose of this class is to act as an easily identifiable container. This makes it easier to find the root of the of behaviors even if it is buried deep in a larger graph. Initializes a new instance of the class. The builder to decorate. After initialization is available via the property. is null. Composes the supplied builders. The builders to compose. A new instance containing as child nodes. Creates a new specimen based on a request. The request that describes what to create. A context that can be used to create other specimens. The requested specimen if possible; otherwise a instance. The can be any object, but will often be a or other instances. Returns the decorated builder as a sequence. wrapped in an Iterator. Returns an enumerator that iterates through a collection. An object that can be used to iterate through the collection. Gets the builder decorated by this instance. The builder originally supplied via the constructor. Creates an alternating sequence of and . Initializes a new instance of the class. Returns an alternating sequence of and every other time it is invoked. , followed by at the next invocation, and so on. Returns an alternating sequence of and every other time it is invoked. , followed by at the next invocation, and so on. Obsolete: Please move over to using Create() as this method will be removed in the next release. Returns an alternating sequence of and every other time it is invoked. The request that describes what to create. Not used. , followed by at the next invocation, and so on, if is a request for a boolean; otherwise, a instance. Creates a sequence of consecutive numbers, starting at 1. Initializes a new instance of the class. Creates an anonymous number. The next number in a consecutive sequence. Creates an anonymous number. The next number in a consecutive sequence. Obsolete: Please move over to using Create() as this method will be removed in the next release. Creates an anonymous byte. The request that describes what to create. Not used. The next byte in a consecutive sequence, if is a request for a byte; otherwise, a instance. Creates a sequence of printable ASCII characters (Dec 33-126), starting at '!' (Dec 33). Initializes a new instance of the class. Creates a new specimen based on a request. The request that describes what to create. A context that can be used to create other specimens. The requested specimen if possible; otherwise a instance. Contains extension methods for populating collections with specimens. Adds many objects to a list. The type of object contained within the list. The collection to which objects should be added. A function that will be called many times to create objects that will be added to . The number of times is invoked, and hence the number of items added to . Adds many anonymously created objects to a list. The type of object that is contained in the list. The fixture. The list to which the anonymously created objects will be added. The number of objects created and added is determined by . Adds many anonymously created objects to a list. The type of object that is contained in the list. The fixture. The list to which the anonymously created objects will be added. The number of objects created and added. Adds many objects to a list using the provided function to create each object. The type of object that is contained in the list. The fixture. The list to which the created objects will be added. The function that creates each object which is subsequently added to . The number of objects created and added is determined by . Customizes an by using all contained . Initializes a new instance of the class. The customizations. Initializes a new instance of the class. The customizations. Gets the customizations contained within this instance. Customizes the specified fixture. The fixture to customize. Creates a constrained string. Creates a constrained string based on a ConstrainedStringRequest. The request that describes what to create. A context that can be used to create other specimens. The requested number if possible; otherwise a instance. A customization that uses a particular constructor selection mechanism to pick and invoke a constructor to create specimens of the targeted type. Initializes a new instance of the class. The for which should be used to select the most appropriate constructor. The query that selects a constructor for . Gets the for which should be used to select the most appropriate constructor. Gets the query that selects a constructor for . Customizes the specified fixture by modifying to use as the strategy for creating new specimens. The fixture to customize. A customization that enables DateTime specimens to be based on the current value. When this customization is added to an instance, requests for DateTime specimens will be satisfied by returning the current value. This customization reproduces the generation strategy for DateTime specimens used in AutoFixture up to version 2.1. Customizes the specified fixture by adding the specific numeric sequence generators. The fixture to customize. Creates new specimens based on the current value. Creates a new instance. The request that describes what to create. Not used. A new instance, if is a request for a ; otherwise, a instance. A set of useful helpers to simplify work with fixture customizations. Create customization that inserts the to the beginning of the customizations collection. A marker class, used to explicitly identify the customizations role in an graph. The only purpose of this class is to act as an easily identifiable container. This makes it easier to find the collection of customization even if it is buried deep in a larger graph. Initializes a new instance of the class. The builder to decorate. After initialization is available via the property. is null. Composes the supplied builders. The builders to compose. A new instance containing as child nodes. Creates a new specimen based on a request. The request that describes what to create. A context that can be used to create other specimens. The requested specimen if possible; otherwise a instance. The can be any object, but will often be a or other instances. Returns the decorated builder as a sequence. wrapped in an Iterator. Returns an enumerator that iterates through a collection. An object that can be used to iterate through the collection. Gets the builder decorated by this instance. The builder originally supplied via the constructor. A marker class, used to explicitly identify builders related to the data annotation handling. The only purpose of this class is to act as an easily identifiable container. This makes it easier to find the collection of data annotation related nodes in the customization list. Builder used to handle the incoming requests. Initializes a new instance of . Builder that handles all the data annotation related requests. Handles a request for a string that matches an Enum data type. Initializes a new instance of the class. Initializes a new instance of the class. The value builder. Gets or sets the current IRequestMemberTypeResolver. Creates a new specimen based on a request. The request that describes what to create. A context that can be used to create other specimens. The requested specimen if possible; otherwise a instance. Handles of enum type by forwarding requests to the of the underlying enum type. Relays a request for a constrained string to a . Gets or sets the current IRequestMemberTypeResolver. Creates a new specimen based on a specified minimum or maximum length of characters that are allowed. The request that describes what to create. A container that can be used to create other specimens. A specimen created from a encapsulating the operand type, the minimum and the maximum of the requested number, if possible; otherwise, a instance. A customization that removes support for generating values that are customized based on the member's data annotations attributes. This removes the , , and . Support for the removal of data annotations is provided for performance reasons, however a typical user of AutoFixture would not need to worry about the performance. Customizes specified fixture by removing any default data annotations relays. The fixture to customize. Handles the for the number type by forwarding it to the . Relays a request for a ranged request to a . Gets or sets the current IRequestMemberTypeResolver. Creates a new specimen based on a requested range. The request that describes what to create. A container that can be used to create other specimens. A specimen created from a encapsulating the operand type, the minimum and the maximum of the requested value, if possible; otherwise, a instance. Encapsulates a request of a specified type within the specified range. Initializes a new instance of the class. Type of the member the range is specified for. Type of the operand. The minimum. The maximum. Gets the type of the member the range is specified for. This property defines the expected type of the result. Refer to the for additional hints about the actual range value type. Gets the specified type of the operand the range is specified for. This property might not correspond to the actual type of a member for which the Range is specified. Refer to the property to get the actual member type. Gets the minimum value. Gets the maximum value. Gets minimum value converted to the specified type. Gets maximum value converted to the specified type. Relays a request for a string that matches a regular expression to a . Creates a new specimen based on a request. The request that describes what to create. A context that can be used to create other specimens. The requested specimen if possible; otherwise a instance. Relays a request for a constrained string to a . Gets or sets the current IRequestMemberTypeResolver. Creates a new specimen based on a specified length of characters that are allowed. The request that describes what to create. A container that can be used to create other specimens. A specimen created from a encapsulating the operand type, the minimum and the maximum of the requested number, if possible; otherwise, a instance. Handles of TimeSpan type by forwarding requests to the with min and max TimeSpan as milliseconds values. Creates a sequence of consecutive numbers, starting at 1. Initializes a new instance of the class. Creates an anonymous number. Creates an anonymous number. Supplies instances that can be used to implement the default engine of AutoFixture. Initializes a new instance of the class with an instance of . Initializes a new instance of the class with the supplied sequence of . The builders to use instead of . Initializes a new instance of the class with the supplied array of . The builders to use instead of . Returns an enumerator that iterates through the collection. A that can be used to iterate through the collection. Supplies instances that can resolve requests for many common primitives, such as and . Returns an enumerator that iterates through the collection. A that can be used to iterate through the collection. Returns an enumerator that iterates through a collection. An object that can be used to iterate through the collection. Supplies instances that works as AutoFixture's 'transmission'. Without those builders, very little is likely to work. Returns an enumerator that iterates through the collection. A that can be used to iterate through the collection. Returns an enumerator that iterates through a collection. An object that can be used to iterate through the collection. Contains methods for populating dictionaries with specimens. Adds many items to a dictionary. The dictionary to which items should be added. The context which can be used to resolve other specimens. This method mainly exists to support AutoFixture's infrastructure code (particularly and is not intended for use in user code. is not an instance of . Adds many items to a dictionary. The dictionary to which items should be added. The context which can be used to resolve other specimens. is not an instance of . Encapsulates a customization that adds tracking of disposable specimens to an . Customize an to enable tracking of disposable specimens. Invoke on the instance to dispose of all tracked instances. Initializes a new instance of the class. Gets the behavior that this customization adds to instances. Customizes the specified fixture by applying . The fixture to customize. Disposes . Disposes . to release both managed and unmanaged resources; to release only unmanaged resources. Represents a domain name. Initializes a new instance of the class. Throws ArgumentNullException if domainName is null. Throws ArgumentException if domainName is empty. Get the name of the domain. Returns a that represents the domain name for this instance. A that represents the domain name for this instance. Determines whether the specified is equal to this instance. The to compare with this instance. true if the specified is equal to this instance; otherwise, false. The parameter is null. Returns a hash code for this instance. A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. Creates new instances. Creates a sequence of consecutive numbers, starting at 1. Initializes a new instance of the class. Creates an anonymous number. Creates an anonymous number. Aggregates an arbitrary number of instances by wrapping a . The type of specimen to customize. This implementation finds all sub-nodes in the wrapped graph and applies the appropriate method to all matches. Gets the encapsulated node. The encapsulated node. Initializes a new instance of the class. A node which may contain sub-nodes. node is null. Composes a new instance. A new instance which can be used to produce specimens according to the behavior specified by previous method calls. Aggregates an arbitrary number of instances. The type of specimen to customize. Initializes a new instance of the class with a sequence of instances. The composers to aggregate. Initializes a new instance of the class with an array of instances. The composers to aggregate. Gets the aggregated composers. Provides statements that can be used to control how specimens are created and post-processed. The type of specimen to customize. Provides statements that can be used to control how specimens are created. The type of specimen. Specifies a function that defines how to create a specimen from a seed. The factory used to create specimens from seeds. An which can be used to further customize the post-processing of created specimens. Specifies an that can create specimens of the appropriate type. Mostly for advanced scenarios. An that can create specimens of the appropriate type. An which can be used to further customize the post-processing of created specimens. This method is mostly intended for advanced scenarios where a more loosely coupled strategy is desired to create specimens, but the advantages of the strongly typed are still desired for post-processing. One possible scenario is for post-processing of interfaces or abstract types where auto-mocking is desired to create the instance. This method makes it possible to supply an auto-mocking . must be able to create specimens of the requested type, or exceptions may be thrown. Specifies that an anonymous object should be created in a particular way; often by using a constructor. A function that will be used to create the object. This will often be a constructor. An which can be used to further customize the post-processing of created specimens. Specifies that a specimen should be created in a particular way, using a single input parameter for the factory. The type of input parameter to use when invoking . A function that will be used to create the object. This will often be a constructor that takes a single constructor argument of type . An which can be used to further customize the post-processing of created specimens. Specifies that a specimen should be created in a particular way, using two input parameters for the construction. The type of the first input parameter to use when invoking . The type of the second input parameter to use when invoking . A function that will be used to create the object. This will often be a constructor that takes two constructor arguments of type and . An which can be used to further customize the post-processing of created specimens. Specifies that a specimen should be created in a particular way, using three input parameters for the construction. The type of the first input parameter to use when invoking . The type of the second input parameter to use when invoking . The type of the third input parameter to use when invoking . A function that will be used to create the object. This will often be a constructor that takes three constructor arguments of type , and . An which can be used to further customize the post-processing of created specimens. Specifies that a specimen should be created in a particular way, using four input parameters for the construction. The type of the first input parameter to use when invoking . The type of the second input parameter to use when invoking . The type of the third input parameter to use when invoking . The type of the fourth input parameter to use when invoking . A function that will be used to create the object. This will often be a constructor that takes three constructor arguments of type , , and . An which can be used to further customize the post-processing of created specimens. Provides statements that can be used to control how specimens are post-processed. The type of specimen. Performs the specified action on a specimen. The action to perform. An which can be used to further customize the post-processing of created specimens. Disables auto-properties for a type of specimen. An which can be used to further customize the post-processing of created specimens. Registers that a writable property or field should be assigned an anonymous value as part of specimen post-processing. The type of the property of field. An expression that identifies the property or field that will should have a value assigned. An which can be used to further customize the post-processing of created specimens. Registers that a writable property or field should be assigned a specific value as part of specimen post-processing. The type of the property of field. An expression that identifies the property or field that will have assigned. The value to assign to the property or field identified by . An which can be used to further customize the post-processing of created specimens. Registers that a writable property or field should be assigned generated value as a part of specimen post-processing. An expression that identifies the property or field that will have result assigned. The factory of value to assign to the property or field identified by . Registers that a writable property or field should be assigned generated value as a part of specimen post-processing. An expression that identifies the property or field that will have result assigned. The factory of value to assign to the property or field identified by . Enables auto-properties for a type of specimen. An which can be used to further customize the post-processing of created specimens. Registers that a writable property should not be assigned any automatic value as part of specimen post-processing. The type of the property or field to ignore. An expression that identifies the property or field to be ignored. An which can be used to further customize the post-processing of created specimens. Enables composition customization of a single type of specimen. The type of specimen. Gets the encapsulated builder. The encapsulated builder. Initializes a new instance of the class. A builder to which specimen creation responsibilities are delegated. A new instance with an appropriate initial can be easily produced by . Composes a new instance. A new instance which can be used to produce specimens according to the behavior specified by previous method calls. Controls whether auto-properties will be enabled or not. Set to to enable auto-properties. A new instance of where auto-properties are either enabled or disabled according to . Looks for the AutoProperties postprocessor in the current graph. If postprocessor is missing, it's created in inactive state. Adjusts the AutoProperties postprocessor and changes rule to avoid the specified member population. If AutoProperties node is missing, nothing is done. An that does not customize anything, but can still compose an - typically by returning the instance it is configured to use. Initializes a new instance of the class. Initializes a new instance of the class with an that will be returned by the method. Initializes a new instance of the class with a function used to implement the method. Composes a new instance. Which is returned depends on how the instance was configured through its constructor. Draws a random element from the given collection. Initializes a new instance of the class. Initializes a new instance of the class. Returns one of the element present in the collection given when the object was constructed. The request that describes what to create. Not used. One of the element present in the collection given to the constructor if is a request for ; otherwise, a instance. Represents the local part of the email address, defined as everything up to, but not including, the @ sign. Since EmailAddressLocalPart is used in constructing MailAddress, enforcement of rules on a valid email address is performed by and not EmailAddressLocalPart other than as noted. Initializes a new instance of the class. Throws ArgumentNullException if localPart is null. Throws ArgumentException if localPart is empty. The local part. Get the local part. Determines whether the specified is equal to this instance. The to compare with this instance. true if the specified is equal to this instance; otherwise, false. The parameter is null. Returns a hash code for this instance. A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. Returns a that represents the local part for this instance. A that represents the local part for this instance. Creates new instances. Creates a new specimen based on a request. The request that describes what to create. A context that can be used to create other specimens. The requested specimen if possible; otherwise a instance. Generates enum values in a round-robin fashion. Initializes a new instance of the class. Creates a new enum value based on a request. The request that describes what to create. A context that can be used to create other specimens. Not used. An enum value if appropriate; otherwise a instance. If is a that represents an enum, an instance of that enum is returned. Differing values are returned, starting with the first value. When all values of the enum type have been served, the sequence starts over again. Provides object creation services. Initializes a new instance of the class. Initializes a new instance of the class with the supplied engine parts. Initializes a new instance of the class with the supplied engine and a definition of what 'many' means. The engine. The definition and implementation of 'many'. Gets the core engine of the instance. This is the core engine that drives a instance. Even with no or , the should be capably of resolving a wide range of different requests, based on conventions. Gets or sets a number that controls how many objects are created when a creates more than one anonymous objects. Gets an enumerator over the internal specimen builders used to create objects. An enumerator over the internal specimen builders used to create objects. Contains extension methods for freezing specimens in instances. Freezes the type to a single value. The type to freeze. The fixture. The value that will subsequently always be created for . The method freezes the type to always return the same instance whenever an instance of the type is requested either directly, or indirectly as a nested value of other types. Freezes the type to a single value. The type to freeze. The fixture. A function that customizes a given and returns the modified composer. The value that will subsequently always be created for . This method freezes the type to always return the same instance whenever an instance of the type is requested either directly, or indirectly as a nested value of other types. The frozen instance is created by an that is the result of applying the . Contains extension methods for registering specimens in instances. Injects a specific instance for a specific type, in order to make that instance a shared instance, no matter how many times the Fixture is asked to create an instance of that type. The type for which should be injected. The fixture. The item to inject. Injecting an instance of a specific type into a effectively 'locks' the type to that specific instance. The injected becomes a shared instance. No matter how many times the Fixture instance is asked to create an instance of , the shared item is returned. It's possible to inject a sub-type of T into the Fixture. As long as the item can be converted to T (i.e. as long at the code compiles), you can inject a sub-type of T into the Fixture. This can for example be used to lock an interface to a specific instance of a concrete type. If you are familiar with DI Container lifetime management, the following parallel may be helpful. If not, skip the next paragraph. Most DI Containers come with several built-in lifetime styles. The two most common lifetime styles are Transient (a new instance is created for every request) and Singleton (the same instance is used for all requests) (don't confuse the Singleton lifetime style with the Singleton design pattern; they are related, but different). By default, Fixture uses the Transient lifetime style: it creates a new instance for every request. However, using the Inject method, effectively changes the lifetime style for that particular type to Singleton. This example demonstrates that when injecting an instance of the custom class MyClass into a Fixture instance, that Fixture instance will return the originally injected MyClass instance every time it's asked to create an instance of MyClass. var fixture = new Fixture(); var original = new MyClass(); fixture.Inject(original); var actual1 = fixture.Create<MyClass>(); var actual2 = fixture.Create<MyClass>(); // actual1 and actual2 are equal, and equal to original Assert.Same(actual1, actual2); Assert.Same(original, actual1); Assert.Same(original, actual2); Registers a creation function for a specific type. The type for which should be registered. The fixture. A function that will be used to create objects of type every time the is asked to create an object of that type. Registers a creation function for a specific type, when that creation function requires a single input parameter. The type of the input parameter used by . The type for which should be registered. The fixture. A function that will be used to create objects of type every time the is asked to create an object of that type. Registers a creation function for a specific type, when that creation function requires two input parameters. The type of the first input parameter used by . The type of the second input parameter used by . The type for which should be registered. The fixture. A function that will be used to create objects of type every time the is asked to create an object of that type. Registers a creation function for a specific type, when that creation function requires three input parameters. The type of the first input parameter used by . The type of the second input parameter used by . The type of the third input parameter used by . The type for which should be registered. The fixture. A function that will be used to create objects of type every time the is asked to create an object of that type. Registers a creation function for a specific type, when that creation function requires four input parameters. The type of the first input parameter used by . The type of the second input parameter used by . The type of the third input parameter used by . The type of the fourth input parameter used by . The type for which should be registered. The fixture. A function that will be used to create objects of type every time the is asked to create an object of that type. Contains extension methods for repeating a function in instances. Repeats a function many times. The type of object that creates. The to use. A function that creates an instance of . A sequence of objects created by . The number of times is invoked is determined by . A customization that freezes specimens of a specific and uses them to satisfy requests that match a set of criteria. The criteria that determine whether the frozen specimen will be used to satisfy a given request are specified at construction time as a object. Multiple criteria can be combined together as a boolean expression by composing them into a or object. Initializes a new instance of the class. The request used to create a specimen to freeze. is . Initializes a new instance of the class. The request used to create a specimen to freeze. The used to match the requests that will be satisfied by the frozen specimen. or is null. The of the frozen specimen. The request used to resolve specimens. By default that is TargetType. The used to match the requests that will be satisfied by the frozen specimen. Customizes the specified fixture. The fixture to customize. A customization that will freeze a specimen of a given . Initializes a new instance of the class. The to freeze. is null. Initializes a new instance of the class. The to freeze. The to map the frozen value to. Either or is null. is not assignable from . Gets the to freeze. Gets the to which the frozen value should be mapped to. Defaults to the same as . Customizes the fixture by freezing the value of . The fixture to customize. is null. Generates a perpetual sequence of items. The item type. This is a generator that generates a perpetual sequence of items of type , based on an encapsulated . This can be useful when zipping a against a finite sequence, since this sequence will go on for as long as required. Initializes a new instance of the class. A builder which is used to generate items. is null. Returns an enumerator that iterates through the collection. Returns an enumerator that iterates through a collection. An object that can be used to iterate through the collection. Creates new instances. Creates a new instance. Creates a new instance. Encapsulates a customization of an . Customizes the specified fixture. The fixture to customize. Provides object creation services. Gets the behaviors that are applied as Decorators around other parts of a Fixture. is invoked. Gets the customizations that intercept the request handling by the core. Any in this list are invoked before predefined builders giving them a chance to intercept a request and resolve it. places resulting customizations in this list. Gets or sets if writable properties should generally be assigned a value when generating an anonymous object. Gets or sets a number that controls how many objects are created when a creates more than one anonymous objects. Gets the residue collectors that can be used to handle requests that neither the nor the predefined builders could handle. These instances will be invoked if no previous builder could resolve a request. This gives you the opportunity to define fallback strategies to deal with unresolved requests. Customizes the creation algorithm for a single object, effectively turning off all Customizations on the . The type of object for which the algorithm should be customized. A that can be used to customize the creation algorithm before creating the object. The Build method kicks off a Fluent API which is usually completed by invoking on the method chain. Note that the Build method chain is best understood as a one-off Customization. It bypasses all Customizations on the instance. Instead, it allows fine-grained control when building a specific specimen. However, in most cases, adding a convention-based is a better, more flexible option. Applies a customization. The customization to apply. An where the customization is applied. Note to implementers: the returned is expected to have applied. Whether the return value is the same instance as the current instance, or a copy is unspecified. Customizes the creation algorithm for all objects of a given type. The type of object to customize. A function that customizes a given and returns the modified composer. The resulting is added to . A customization that enables specimens to be based on an incrementing sequence of days starting from . This customization reproduces the generation strategy for specimens used in AutoFixture up to version 3.0. Customizes the specified fixture. The fixture to customize. is . Creates a sequence of consecutive numbers, starting at 1. Initializes a new instance of the class. Creates an anonymous number. The next number in a consecutive sequence. Creates an anonymous number. The next number in a consecutive sequence. /// Obsolete: Please move over to using Create() as this method will be removed in the next release. Creates an anonymous number. The request that describes what to create. Not used. The next number in a consecutive sequence, if is a request for a 16-bit integer; otherwise, a instance. Creates a sequence of consecutive numbers, starting at 1. Creates an anonymous number. The next number in a consecutive sequence. Creates an anonymous number. Obsolete: Please move over to using Create() as this method will be removed in the next release. The next number in a consecutive sequence. Creates an anonymous number. The request that describes what to create. Not used. The next number in a consecutive sequence, if is a request for an integer; otherwise, a instance. Creates a sequence of consecutive numbers, starting at 1. Creates an anonymous number. The next number in a consecutive sequence. Creates an anonymous number. Obsolete: Please move over to using Create() as this method will be removed in the next release. The next number in a consecutive sequence. Creates an anonymous number. The request that describes what to create. Not used. The next number in a consecutive sequence, if is a request for an 64-bit integer; otherwise, a instance. Handles creation requests for instances, returning always the same . Generates a CultureInfo specimen based on a type request. The request that describes what to create. A context that can be used to create other specimens. The requested specimen if possible; otherwise a instance. > The generated CultureInfo will always be the same as . Source of the instances specific for the particular parameter. The main clients of this interface might be glue libraries which provide support for the parameter specific customizations. Gets a customization for a parameter. The parameter for which the customization is requested. Resolver of the member type for the class member requests (e.g. PropertyInfo, FieldInfo). Tries to determine requested member type and returns it. A specification that evaluates whether a request is a request for an abstract type such as an abstract base class or an interface. Evaluates a request for a specimen. The specimen request. if is a that represents an abstract base class or an interface; otherwise, . Adapts an action delegate to . The type of specimen operated on by the adapted action delegate. Initializes a new instance of the class. An action to be performed when is invoked. Initializes a new instance of the class. An action to be performed when is invoked. Invokes the adapted action on the specimen. The specimen on which to invoke the adapted action. The context. This method invokes the adapted action supplied via one of the constructors, passing and to the action. A query which is used to compose multiple s, returning only those properties that are returned by all queries. Constructs an instance of , that will select properties from specified types that are returned by . The queries that should be used to select properties. Gets the queries that are used to select properties from specified types. Selects properties from that are returned by . The type which properties should be selected from. Properties belonging to that meet . A boolean 'And' Composite . Initializes a new instance of the with the supplied specifications. An array of . Initializes a new instance of the class with the supplied specifications. A sequence of . Gets the decorated specifications. Evaluates a request for a specimen. The specimen request. if is satisfied by all ; otherwise, . A specification that evaluates whether a request is a request for a type. Evaluates a request for a specimen. The specimen request. if is a ; otherwise, . Selects public constructors ordered so that any constructor with array arguments are selected before any other public constructor. The main target of this implementation is to pick constructors with array arguments before any other constructor. Selects the constructors for the supplied type. The type. All public constructors for , giving priority to any constructor with one or more array arguments. Given several constructors, this implementation will favor those constructors which contain array arguments. Constructors with most matching arguments are returned before constructors with less matching arguments. Any other constructors are returned with the most modest constructors first. Relays a request for an array to a and converts the result to the desired array type. Creates a new array based on a request. The request that describes what to create. A context that can be used to create other specimens. An array of the requested type if possible; otherwise a instance. If is a request for an array and can satisfy a for the element type, the return value is a populated array of the requested type. If not, the return value is a instance. A command that assigns anonymous values to all writable properties and fields of a type. The explicitly specified that should be used to resolve fields and properties to populate for the specimen. Property will return null if no explicit specimen type was specified during the command construction. In this case command uses the runtime type of the generated specimen to resolve its fields and properties. Initializes a new instance of the class. When created without an explicit specimen type, the will infer the specimen type from the actual specimen instance. Initializes a new instance of the class with the supplied specimen type. The specimen type on which properties are assigned. Initializes a new instance of the class with the supplied specification. A specification that is used as a filter to include properties or fields. Only properties or fields satisfied by will get assigned values. Initializes a new instance of the class with the supplied specimen type and specification. The specimen type on which properties are assigned. A specification that is used as a filter to include properties or fields. Only properties or fields satisfied by will get assigned values. A command that assigns anonymous values to all writable properties and fields of a type. The specimen type on which properties are assigned. Specification that filters properties and files that should be populated. Initializes a new instance of the class. Initializes a new instance of the class with the the supplied specification. A specification that is used as a filter to include properties or fields. Only properties or fields satisfied by will get assigned values. Assigns anonymous values to properties and fields on a specimen. The specimen on which property and field values will be assigned. An that is used to create property and field values. Evaluates whether a request matches a property or field affected by this command. The specimen request. if is a or that identifies a property or field affected by this ; otherwise, . Gets the type of the specimen. The specimen. The type of the specimen. This implementation ignores and returns the type parameter of . Assigns anonymous values to properties and fields on a specimen. Encapsulates a command that binds a property or a field to a value. The type of the specimen on which the property or value will be set. The type of property or field. Initializes a new instance of the class with the supplied property picker expression. An expression that identifies a property or field. This constructor implies that an anonymous value will be assigned to the property or field identified by . Initializes a new instance of the class with the supplied property picker expression and the value to be assigned to that property or field. An expression that identifies a property or field. The value to assign to the property or field identified by . Initializes a new instance of the class with the supplied property picker expression and a function that creates a value to be assigned to that property or field. An expression that identifies a property or field. A function that creates a value that will be assigned to the property or field identified by . Gets the member identified by the expression supplied through the constructor. Gets the function that creates a value to be assigned to the property or field identified by . Executes the command on the supplied specimen by assigning the property of field the correct value. A specimen that should have its property or field assigned. An which can supply an anonymous value for the property or field. This method assigns a value to the property or field identified by the expression supplied to the class' constructor. If no value (or creator) was supplied to the constructor, will be used to create the value. Evaluates whether a request matches the property or field affected by this command. The specimen request. if is a or that identifies the property or field affected by this ; otherwise, . Executes the command on the supplied specimen by assigning the property of field the correct value. This method assigns a value to the property or field identified by the expression supplied to the class' constructor. If no value (or creator) was supplied to the constructor, will be used to create the value. Relays a request for an to a request for a and returns the result. Creates a new specimen based on a request. The request that describes what to create. A context that can be used to create other specimens. A populated of the appropriate item type if possible; otherwise a instance. If is a request for an and can satisfy a request for a populated specimen of that type, this value will be returned. If not, the return value is a instance. Encapsulates logic that determines whether a request is a request for a . Evaluates a request for a specimen to determine whether it's a request for a . The specimen request. if is a request for a ; otherwise, . An implementation of that composes other IMethodQuery instances. Initializes a new instance of the class. The queries. Initializes a new instance of the class. The queries. Gets the queries supplied through one of the constructors. Selects the methods for the supplied type. The type. Methods for . Creates specimens by returning the first specimen created by its children. Initializes a new instance of the class with the supplied builders. The child builders. Initializes a new instance of the class with the supplied builders. The child builders. Gets the child builders. Creates a new specimen by delegating to . The request that describes what to create. A container that can be used to create other specimens. The first result created by . Composes the supplied builders. The builders to compose. A new instance containing as child nodes. Returns an enumerator that iterates through the collection. A that can be used to iterate through the collection. Returns an enumerator that iterates through a collection. An object that can be used to iterate through the collection. Aggregates a set of . Executing the aggregate will trigger the execution of the parts. Initializes a new instance of class with the supplied set of commands. The child commands. Initializes a new instance of class with the supplied set of commands. The child commands. Gets the child commands. Executes all child commands using a given specimen and context. The specimen on which the child commands will be executed. The context of . Encapsulates a maximum length for a string. Initializes a new instance of the class. The minimum length. The maximum length. Initializes a new instance of the class. The maximum. Gets the minimum length. Gets the maximum length. Determines whether the specified is equal to this instance. The to compare with this instance. true if the specified is equal to this instance; otherwise, false. The parameter is null. Returns a hash code for this instance. A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. Indicates whether the current object is equal to another object of the same type. An object to compare with this object. true if the current object is equal to the parameter; otherwise, false. Encapsulates a constructor as a method. Initializes a new instance of the class. The constructor. Gets the constructor. Determines whether the specified is equal to this instance. The to compare with this instance. if the specified is equal to this instance; otherwise, . Returns a hash code for this instance. A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. Gets information about the parameters of the method. Invokes the method with the supplied parameters. The parameters. The result of the method call. Indicates whether the current object is equal to another object of the same type. An object to compare with this object. if the current object is equal to the parameter; otherwise, . Serves as a criterion against which a value can be compared. When a given value equals the criterion, it can be said to match the criterion; otherwise not. The type of values being compared. Sometimes you need to compare various candidates against a particular value, but the comparison rules may vary. Sometimes, strict equality is warranted, but otherwise (e.g. when comparing strings) looser comparison rules can be applied (e.g. case-insensitve comparison of strings). The Criterion class enables you to capture the desied value (the ) together with the appropriate comparison method (the ) in a single object. Initializes a new instance of the class. The target value against which candidates will be compared. Can be . The comparison method used to compare candidates against . is . Compares a candidate value against this . The candidate to compare against this value. if is deemed equal to this instance; otherwise, . This method compares the candidate against , using as the comparison method. If this combination of target value and comparison method deems the candidate to be equal to this criterion, the return value is . Determines whether this object is equal to another object. The object to compare to this object. if is equal to this object; otherwise, . The desired target value, as supplied via the constructor. The comparison method used to compare to candidates. Returns the hash code for the object. The hash code. Creates new instances. The specification used to verify that request is for the supported delegate type. Creates a new instance of the type. Creates a new instance of the type. Creates a new instance. The request that describes what to create. A context that can be used to create other specimens. is null. A new instance, if is a request for a ; otherwise, a instance. A specification that evaluates specimen request to see if it's for the delegate type. Evaluates a request for a specimen. The specimen request. if is of a delegate type, otherwise . Relays a request for an to a request for a and returns the result. Creates a new specimen based on a request. The request that describes what to create. A context that can be used to create other specimens. A populated of the appropriate item type if possible; otherwise a instance. If is a request for an and can satisfy a request for a populated specimen of that type, this value will be returned. If not, the return value is a instance. Encapsulates logic that determines whether a request is a request for a dictionary. Evaluates a request for a specimen to determine whether it's a request for a dictionary. The specimen request. if is a request for a ; otherwise, . A specification that determines whether the request is a request for a that directly inherits from the specified . Initializes a new instance of the class. The from which the requested type should directly inherit. is . The from which the requested type should directly inherit. Evaluates a request for a specimen. The specimen request. if is satisfied by the Specification; otherwise, . Tracks all disposable specimens created by a decorated to be able to dispose them when signalled. The DisposableTracker examines all specimens created by a decorated . All specimens that implement are tracked so that they can be deterministically disposed. This happens when is invoked on the instance. Initializes a new instance of the class. The decorated builder. After initialization, is available through the property. Gets the decorated builder. This property exposes the decorated builder originally supplied to the constructor. Gets the disposable specimens currently tracked by this instance. Items are added to this list by the method. Creates a new specimen based on a request. The request that describes what to create. A context that can be used to create other specimens. The specimen created by the decorated builder. This method delegates creation of specimens to the decorated . However, before specimens are returned they are examined and tracked in the list if they implement . They can subsequently be disposed by invoking the method on the instance. Composes the supplied builders. The builders to compose. A new instance containing as child nodes. Returns an enumerator that iterates through the collection. A that can be used to iterate through the collection. Disposes all items in the list and removes them from the list. Disposes all items in the list and removes them from the list. to release both managed and unmanaged resources; to release only unmanaged resources. Decorates instances with instances. Initializes a new instance of the class. Gets the trackers created by this instance. Each time is invoked, a new instance is created and added to this list. Decorates the supplied builder with a . The builder to transform. A new that decorates . The returned is also added to the property. Disposes all and clears the list. Disposes all and clears the list. to release both managed and unmanaged resources; to release only unmanaged resources. Selects public constructors ordered so that any constructor with arguments matching are selected before any other public constructor. The main target of this implementation is to pick before any other constructor. This can be used to populate a list instance with a sequence of items. Selects the constructors for the supplied type. The type. All public constructors for , giving priority to any constructor with one or more arguments. Given several constructors, this implementation will favor those constructors with arguments that matches , where T is the item type of , if it's generic. Constructors with most matching arguments are returned before constructors with less matching arguments. Any other constructors are returned with the most modest constructors first. Relays a request for to a and converts the result to a sequence of the requested type. Creates a new sequence of items based on a request. The request that describes what to create. A context that can be used to create other specimens. A sequence of the requested type if possible; otherwise a instance. If is a request for and can satisfy a for the item type, the return value is a populated sequence of the requested type. If not, the return value is a instance. Relays a request for to and converts the result to an enumerator of a sequence of the requested type. Creates a new enumerator based on a request. The request that describes what to create. A context that can be used to create other specimens. An enumerator of the requested type if possible; otherwise a instance. If is a request for an and can satisfy an request for the element type, the return value is an enumerator of the requested type. If not, the return value is a instance. Evaluates whether a request is equal to an expected target. Initializes a new instance of the class. Initializes a new instance of the class. Evaluates whether a request for a specimen is equal to the expected target. Gets the expected target. Gets the equality comparer used to compare a request to the expected target. A specification that evaluates requests for types against a target type. Also matches generic type requests agains the specified open generic. Initializes a new instance of the class. The target type. Gets the type targeted by this . Evaluates a request for a specimen. The specimen request. if matches the target type; otherwise, . If current expression is a conversion expression, unwrap it and return the underlying expression. Otherwise, do nothing. Selects public factory methods ordered by the modest first. Selects the public factory methods for the supplied type. The type. All public factory methods for , ordered by the modest first. The ordering of the returned methods is based on the number of parameters of the method. Methods with fewer parameters are returned before methods with more parameters. This means that if a default parameterless factory methods exists, it will be the first one returned. In case of two factory methods with an equal number of parameters, the ordering is unspecified. Factory methods that contain parameters of the requested are skipped in order to avoid circular references. A that is always . Evaluates a request for a specimen. The specimen request. . Relays a request for a field to a with a seed based on the field's name. Creates a new specimen based on a requested field. The request that describes what to create. A container that can be used to create other specimens. A specimen created from a encapsulating the field type and name of the requested field, if possible; otherwise, a instance. A specification that determines whether the request is a request for a matching the specified name and . Initializes a new instance of the class. The with which the requested type should be compatible. The name which the requested name should match exactly. or is . Initializes a new instance of the class. The criteria used to match the requested . is . The with which the requested type should be compatible. The name which the requested name should match exactly. Evaluates a request for a specimen. The specimen request. if is satisfied by the Specification; otherwise, . Represents a criterion for comparing a candidate field against a desired type and name. Sometimes, you may need to evaluate various candidate values, looking for one that has a desired field type and name. This class represents such an evaluation criterion. Initializes a new instance of the class with the desired field type and name criteria. The criterion indicating the desired field type. The criterion indicating the desired field name. or is . Compares a candidate object against this . The candidate to compare against this object. if is deemed equal to this instance; otherwise, . This method compares the candidate against and . If the field's type matches the type criterion, and its name matches the name criterion, the return value is . The type criterion originally passed in via the class' constructor. The name criterion originally passed in via the class' constructor. Determines whether this object is equal to another object. The object to compare to this object. if is equal to this object; otherwise, . Returns the hash code for the object. The hash code. Decorates an and filters requests so that only some requests are passed through to the decorated builder. Initializes a new instance of the class. A specimen builder to decorate. A specification that determines whether will receive the request. Gets the decorated builder. Gets the specification that determines whether will be invoked or not. Creates a new specimen based on a request. The request that describes what to create. A container that can be used to create other specimens. A specimen created by the decorated if the filter allows the request through; otherwise, a instance. Composes the supplied builders. The builders to compose. A new instance containing as child nodes. Returns an enumerator that iterates through the collection. A that can be used to iterate through the collection. Unwraps a request for many instances and returns the results as a true dynamic sequence. Creates many specimen based on a request. The request that describes what to create. A context that can be used to create other specimens. Many specimens if is a instance; otherwise a instance. The sequence returned is a true generator, so successive iterations will yield different sets of specimens. If this is not the desired behavior, provides an alternative. Signals that many similar instances are requested. Initializes a new instance of the class. The underlying request to multiply. The number of instances requested. Determines whether the specified is equal to this instance. The to compare with this instance. if the specified is equal to this instance; otherwise, . The parameter is null. Returns a hash code for this instance. A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. Creates many requests from the underlying requests. A number of similar requests. Indicates whether the current object is equal to another object of the same type. An object to compare with this object. if represents the same request with the same requested count; otherwise, . A that always returns the same specimen. Initializes a new instance of the class. The specimen to return from the method. Returns the same specimen every time. The request that describes what to create. Ignored. A context that can be used to create other specimens. Ignored. The specimen supplied to the instance in the constructor. A query which returns generic collection properties from specified types. Select those properties that are generic collections from . The type which generic collection properties should be selected from. Properties belonging to that are collections. Encapsulates a generic method, inferring the type parameters bases on invocation arguments. Initializes a new instance of the class. The method info. The factory to create an from the resolved by . Gets information about the parameters of the method. Gets information about the method. Gets information about the factory to create from . Invokes the method with the supplied parameters. The parameters. The result of the method call. Selects public constructors ordered by the most greedy constructor first. Selects the constructors for the supplied type. The type. All public constructors for , ordered by the most greedy constructor first. The ordering of the returned constructors is based on the number of parameters of the constructor. Constructors with more parameters are returned before constructors with fewer parameters. This means that if a default constructor exists, it will be the last one returned. In case of two constructors with an equal number of parameters, the ordering is unspecified. Encapsulates logic that determines whether a request is a request for a . Evaluates a request for a specimen to determine whether it's a request for a . The specimen request. if is a request for a ; otherwise, . Indicates that an illegal request was detected. Certain requests are considered illegal (such as ) because satisfying them can crash the process. Initializes a new instance of the class. Initializes a new instance of the class with an error message. The error message. Initializes a new instance of the class with an error message and an inner exception. The error message. The inner exception. Represents some kind of method that can be invoked with a known set of parameters. Gets information about the parameters of the method. Invokes the method with the supplied parameters. The parameters. The result of the method call. Creates a new Method from a . Creates the method for the supplied methodInfo. The methodInfo. Method for . Defines a strategy for selecting methods (such as constructors or factory methods) from a type. Selects the methods for the supplied type. The type. Methods for . A specification that determines whether the request is a request for a that implements the specified interface . Initializes a new instance of the class. The interface which the requested type should implement. is . The interface which the requested type should implement. Evaluates a request for a specimen. The specimen request. if is satisfied by the Specification; otherwise, . Encapsulates an instance method. This is essentially an Adapter over . Initializes a new instance of the class. The instance method. The owner. The owner is expected to expose the method designated by . If not, the method will fail. Gets the method originally supplied through the constructor. Gets the owner originally supplied through the constructor. Determines whether the specified is equal to this instance. The to compare with this instance. if the specified is equal to this instance; otherwise, . The parameter is null. Returns a hash code for this instance. A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. Gets information about the parameters of the method. Invokes the method with the supplied parameters. The parameters. The result of the method call. Indicates whether the current object is equal to another object of the same type. An object to compare with this object. if the current object is equal to the parameter; otherwise, . Selects a method from an instance. Constructs an instance of an , used to select a particular method from an instance. The instance that should be selected from. The name of the method that should be selected. Gets the instance that should be selected from. Gets the name of the method that should be selected. Selects from . Discarded. Returns an empty enumerable if does not belong to ; returns an enumerable containing a single otherwise. Guards against requests for by throwing an exception. Some types (e.g. ) have constructors that take an instance that indicate the address of the code block to be executed. IntPtr in itself have several constructors, amongst a few that AutoFixture thinks it can resolve; e.g. the constructor that takes an as input. This means that AutoFixture, unless prevented, will create IntPtr instances with completely invalid addresses such as 1 or 2. When code attempts to use these invalid IntPtr instances, the process crashes. To prevent the process from crashing, AutoFixture considers request for IntPtr instances illegal. This class implements that rule by throwing an exception if such a request is detected. Guards against requests for . The request that describes what to create. A context that can be used to create other specimens. A instance, unless is a request for in which case an exception is thrown. is the . Decorates an and returns the opposite result. Initializes a new instance of the by decorating the supplied specification. The to decorate. Gets the decorated specification. This is the that will be inverted. Returns the opposite result as the decorated . The specimen request. if the decorated returns ; otherwise, . Defines a strategy for selecting properties from a type. Selects the properties for the specified . The type. Property information for properties belonging to . Handles a recursive request. When AutoFixture is asked to create instances of complex custom types, it uses Reflection to figure out which constructor arguments and property values to assign. If the custom types contains circular references, this will cause an infinite recursion. To prevent that, monitors requests in order to detect this type of situation. If RecursionGuard detects this situation, it calls on a composed IRecursionHandler. Handles a recursive request. The request causing the recursion. Previously recorded, and yet unhandled, requests. An object intended to break the recursion. This method is called when AutoFixture detects an infinite recursion. The is the request that triggered the recursion detection; contains all previous, but still unhandled requests: the current call stack, if you will. A Specification that evaluates requests. This is a codification of the Specification patter for requests. This interface can (and should) be used in any place where you need to filter requests for specimens. Evaluates a request for a specimen. The specimen request. if is satisfied by the Specification; otherwise, . A Command that performs an action on a specimen and knows whether that action matches a given request. The type of specimen on which the command acts. Executes the command on the supplied specimen. The specimen on which the command is executed. An that can be used to resolve other requests. Builds, or partakes in building, anonymous variables (specimens). Creates a new specimen based on a request. The request that describes what to create. A context that can be used to create other specimens. The requested specimen if possible; otherwise a instance. The can be any object, but will often be a or other instances. Note to implementers: Implementations are expected to return a instance if they can't satisfy the request. A node in a graph of instances. AutoFixture's kernel basically works as a 'Graph of Responsibility'. Each gets a chance to handle a request, and if it can't do that, the next ISpecimenBuilder is asked to handle the request. When an ISpecimenBuilder instance returns a useful specimen, that instance is returned and the results (if any) from lower-priority ISpecimenBuilder instances are ignored. In theory, one could order all ISpecimenBuilder instances in a flat Chain of Responsibility, but instead, the ISpecimenBuilderNode interface defines the responsibilities of a 'parent' node in a deeper graph. Each ISpecimenBuilder node constitute an intermediate node in a graph, while itself being a parent to other nodes. In the degenerate case when an ISpecimenBuilderNode has no child nodes, it effectively becomes a leaf node. Otherwise, leaf nodes are typically ISpecimenBuilder instances. Composes the supplied builders. The builders to compose. A instance. Note to implementers: The intent of this method is to compose the supplied into a new instance of the type implementing . Thus, the concrete return type is expected to the same type as the type implementing the method. However, it is not considered a failure to deviate from this idiom - it would just not be a mainstream implementation. The returned instance is normally expected to contain the builders supplied as an argument, but again this is not strictly required. The implementation may decide to filter the sequence or add to it during composition. Transforms instance into . Transforms the supplied builder into another. The builder to transform. A new created from . Note to implementers: In most scenarios, the transformation is expected to maintain behavior of ; usually by applying a Decorator. Represents a command which can be applied to a specimen. Applies the command to the supplied specimen. A specimen upon which the command should be applied. A context that can be used to create other specimens. Implementations of this interface will often somehow mutate , e.g. by assigning values to properties, alternatively pulling those values from . Another option is that the the implementation changes the state of command itself. No matter the details, since this is a Command, it can be expected to mutate state somewhere. A context used to create anonymous variables (specimens). Creates an anonymous variable (specimen) based on a request. The request that describes what to create. The requested specimen if possible. The can be any object, but will often be a or other instances. Selects public constructors ordered so that any constructor with arguments matching are selected before any other public constructor. The main target of this implementation is to pick before any other constructor. This can be used to populate a Collection instance with a list of items. Selects the constructors for the supplied type. The type. All public constructors for , giving priority to any constructor with one or more arguments. Given several constructors, this implementation will favor those constructors with arguments that matches , where T is the item type of , if it's generic. Constructors with most matching arguments are returned before constructors with less matching arguments. Any other constructors are returned with the most modest constructors first. Relays a request for an to a request for a and returns the result. Creates a new specimen based on a request. The request that describes what to create. A context that can be used to create other specimens. A populated of the appropriate item type if possible; otherwise a instance. If is a request for an and can satisfy a request for a populated specimen of that type, this value will be returned. If not, the return value is a instance. Encapsulates logic that determines whether a request is a request for a . Evaluates a request for a specimen to determine whether it's a request for a . The specimen request. if is a request for a ; otherwise, . Provides custom equality comparison for instances. Determines whether the specified objects are equal. The first instance to compare. The second instance to compare. if the specified objects are considered equal; otherwise, . and are considered equal if x is exactly equal to y. If not, they are still considered equal if both instances' and properties are equal. Returns a hash code for a instance. The object. A hash code for the supplied instance, suitable for use in hashing algorithms and data structures like a hash table. The type of is a reference type and is null. Creates a new instance of the requested type by invoking the first method it can satisfy. Initializes a new instance of the class with the supplied . The that defines which methods are attempted. Gets the that defines which constructors will be attempted. Creates a specimen of the requested type by invoking the first constructor or method it can satisfy. The request that describes what to create. A context that can be used to create other specimens. A specimen generated from a method of the requested type, if possible; otherwise, . This method uses the first constructor or method returned by where can create values for all parameters. Decorates another method invoking it supplying missing parameters. Initializes a new instance of the class. Gets the decorated method. Gets information about the parameters of the method. Invokes the method with the supplied parameters. The parameters. The result of the method call. Creates a new for an instance . Initializes a new instance of the class. The owner. Gets the owner originally supplied through the constructor. Creates a decorated with for the supplied methodInfo. The methodInfo. Method for . Creates a new for a static . Creates a decorated with for the supplied methodInfo. The methodInfo. Method for . Selects public constructors ordered by the most modest constructor first. Selects the constructors for the supplied type. The type. All public constructors for , ordered by the most modest constructor first. The ordering of the returned constructors is based on the number of parameters of the constructor. Constructors with fewer parameters are returned before constructors with more parameters. This means that if a default constructor exists, it will be the first one returned. In case of two constructors with an equal number of parameters, the ordering is unspecified. Relays a request for a multidimensional array to a jagged array and converts the result to the desired multidimensional array type. Creates a new multidimensional array based on a request. The request that describes what to create. A context that can be used to create other specimens. A multidimensional array of the requested type if possible; otherwise a instance. Relays requests for multiple (an unspecified count) specimens to a request for a specific number of specimens. Initializes a new instance of the class. Gets or sets the count that specifies how many specimens will be requested. Creates many new specimens based on a request. The request that describes what to create. A context that can be used to create other specimens. The requested specimens if possible; otherwise a instance. The number of specimens requested is determined by . Represents a request for many (an unspecified number) of specimens. The difference between and is that the latter specifies the number of specimens requested. translates instances to instances. Initializes a new instance of the class. A single request which will be multiplied. Gets the request to multiply. Determines whether the specified is equal to this instance. The to compare with this instance. if is a instance which is equal to this instance; otherwise, . Returns a hash code for this instance. A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. Indicates whether the current is equal to another MultipleRequest instance. An object to compare with this object. if the current is equal to the parameter; otherwise, false. Relays a to a request for . Creates a new specimen based on a request. The request that describes what to create. A context that can be used to create other specimens. The requested specimen if possible; otherwise a instance. context is null. The can be any object, but will often be a or other instances. This particular implementation only handles instances. must either be a Type instance, or a with a Type as its . If the request doesn't satisfy these conditions, a instance is returned. Throws an when one tries to create Structure without explicit parametrized constructor. Possibly notifying about bad design (mutable value type). This can be used with proper filtering to throw exceptions only on structures without constructors. Will throw an exception instead of letting the containing builder return a instance when it can't satisfy a request or generic exception being thrown. Throws an . The request that describes what to create. A context that can be used to create other specimens. Not used. This method never returns. It always throws an . A specification that evaluates whether a request is a request for a type without public constructors. Initializes a new instance of the class. Evaluates a request for a specimen. The specimen request. if is a that represents a type without public constructors; otherwise, . Signifies that it's not a specimen. implementations are expected to return instances if they can't handle the request. This ensures that can be used as a proper return value. Initializes a new instance of the class with a null request. Initializes a new instance of the class with the supplied request. The original request that prompts the creation of this instance. Gets the original request that prompted the creation of the current instance. This property value may be . Determines whether the specified is equal to the current instance. The to compare to the current instance. if the specified is equal to the current instance; otherwise, . Serves as a hash function for the class. A hash code for the current instance. Indicates whether the current instance is equal to another instance. A instance to compare with this instance. if the current instance is equal to the parameter; otherwise, . Prevents a decorated from returning a instance. Initializes a new instance of the class with an to decorate. The builder to decorate. Initializes a new instance of the class with an to decorate and an that is used to determine whether an exception should be thrown based on the request. The builder to decorate. The specification. Gets the decorated builder. The supplied via the constructor. Gets the specification that is used to determine whether an exception should be thrown for a request that returns a instance. The supplied via the constructor. Creates a new specimen by delegating to the decorated . The request that describes what to create. A context that can be used to create other specimens. The requested specimen if possible; otherwise an exception is thrown or a instance is returned. The decorated returned a result and returned for . Composes the supplied builders. The builders to compose. A new instance containing as child nodes. Returns an enumerator that iterates through the collection. A that can be used to iterate through the collection. A specification that evaluates whether a request is a request for a nullable enum. Evaluates a request for a specimen. The specimen request. if is a request for a nullable enum; otherwise, . Recursion handler that returns null at recursion points. Initializes a new instance of the class. The builder to decorate. Initializes a new instance of the class. The intercepting builder to decorate. An IEqualitycomparer implementation to use when comparing requests to determine recursion. Handles a request that would cause recursion by returning null. The recursion causing request. Always null. Composes the supplied builders. The builders to compose. A new instance containing as child nodes. Breaks a recursion by returning . Some type designs contain circular references, for example in the form of parent/child relationships. Often the circular reference design involves a mutable property where a client can assign a parent to a child, or vice versa. Such a property may accept as input, effectively breaking the circular reference. As an example, setting a Parent property to may indicate that the instance represents a root node. Handles a recursive request by returning . The request causing the recursion. Previously recorded, and yet unhandled, requests. . This method is called when AutoFixture detects an infinite recursion. The is the request that triggered the recursion detection; contains all previous, but still unhandled requests: the current call stack, if you will. This implementation breaks the recursion by returning null. This is not always the appropriate response, because the property or method argument requested may contain a Guard Clause preventing null from being accepted. However, if the member in question accepts null as valid input, returning null to break the recursion may be an appropriate response. Encapsulates logic that determines whether a request is a request for a . Evaluates a request for a specimen to determine whether it's a request for a . The specimen request. if is a request for a ; otherwise, . A container for the strongly obsoleted member shims. You can use the "hard" obsoleted members from the "soft" obsoleted members. Use this trick to allow non-obsoleted the code use the totally obsoleted members for compatibility. Relays requests for array parameters, and returns an empty array if the object returned from the context is an instance. The OmitArrayParameterRequestRelay class works like , except that it only handles instances where is and array. If the value returned from the context is an instance, it returns an empty array. Creates a specimen based on a requested array parameter. The request that describes what to create. A context that can be used to create other specimens. A specimen created from a encapsulating the parameter type and name of the requested parameter, if possible; otherwise, a . This method only handles instances where is an array. If returns an instance, an empty array of the correct type is returned instead. is . Relays requests for enumerable parameters, and returns an empty array if the object returned from the context is an instance. The OmitEnumerableParameterRequestRelay class works like , except that it only handles instances where is . If the value returned from the context is an instance, it returns an empty array. Creates a specimen based on a requested enumerable parameter. The request that describes what to create. A context that can be used to create other specimens. A specimen created from a encapsulating the parameter type and name of the requested parameter, if possible; otherwise, a . This method only handles instances where is . If returns an instance, an empty array of the correct type is returned instead. is . A specification which omits the and types. Evaluates whether or not the is for a fixture type. The specimen request. if the is for a fixture type; otherwise. Recursion handler that returns at recursion points. Initializes a new instance of the class. The builder to decorate. Initializes a new instance of the class. The builder to decorate. An implementation to use when comparing requests to determine recursion. Handles a request that would cause recursion. The recursion-causing request. An instance. Composes the supplied builders. The builders to compose. A new instance containing as child nodes. Breaks a recursion by instructing AutoFixture to ignore the current request. Handles a recursive request by instructing AutoFixture to ignore . The request causing the recursion. Previously recorded, and yet unhandled, requests. A new instance. This method is called when AutoFixture detects an infinite recursion. The is the request that triggered the recursion detection; contains all previous, but still unhandled requests: the current call stack, if you will. This implementation instructs AutoFixture to ignore the request by returning an instance. A signal type used to indicate to the Auto-Property feature that a given request should be ignored, and no further processing performed. This signal type is different from in that it stops further processing. Where NoSpecimen is simply an indication that a particular can't provide a value for a request, an OmitSpecimen instance explicitly indicates that no value will be provided for a request - not even . The OmitSpecimen type is explicitly understood by , but can be returned by any ISpecimenBuilder. Determines whether the specified is equal to this instance. The to compare with this instance. if the specified is an instance of ; otherwise, . Determines whether the specified instance is equal to the current instance. The other instance. if is not ; otherwise . It may seem a little strange that any instance is equal to any other instance of that type, but the class is a pure signal type that carries no state, so there's no reason to distinguish between instances. In essence, it could just as well have been modeled as a Singleton, but wasn't because it seems to bring no particular extra benefit. Returns a hash code for this instance. A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. Issues instances if its encapsulated is satisfied. Initializes a new instance of the class. Initializes a new instance of the class with the supplied . A specification used to control whether or not an instance should be issued. specification. Creates a new specimen based on a request. The request that describes what to create. A context that can be used to create other specimens. An instance if allows it; otherwise a instance. request. The can be any object, but will often be a or other instances. Gets the specification used to control whether an instance should be issued upon request. If the constructor overload that takes an as input was used, this property returns that instance. A boolean 'Or' Composite . Initializes a new instance of the class with the supplied specifications. An array of . Initializes a new instance of the class with the supplied specifications. A sequence of . Gets the decorated specifications. Evaluates a request for a specimen. The specimen request. if is satisfied by any of the ; otherwise, . Relays a request for a parameter to a with a seed based on the parameter's name. Creates a specimen based on a requested parameter. The request that describes what to create. A context that can be used to create other specimens. A specimen created from a encapsulating the parameter type and name of the requested parameter, if possible; otherwise, a instance. A specification that determines whether the request is a request for a matching the specified name and . Initializes a new instance of the class. The with which the requested type should be compatible. The name which the requested name should match exactly. or is . Initializes a new instance of the class. The criteria used to match the requested . is . The with which the requested type should be compatible. The name which the requested name should match exactly. Evaluates a request for a specimen. The specimen request. if is satisfied by the Specification; otherwise, . Represents a criterion for comparing a candidate parameter against a desired type and name. Sometimes, you may need to evaluate various candidate values, looking for one that has a desired parameter type and name. This class represents such an evaluation criterion. Initializes a new instance of the class with the desired field type and name criteria. The criterion indicating the desired field type. The criterion indicating the desired field name. or is . Compares a candidate object against this . The candidate to compare against this object. if is deemed equal to this instance; otherwise, . This method compares the candidate against and . If the parameter's type matches the type criterion, and its name matches the name criterion, the return value is . The type criterion originally passed in via the class' constructor. The name criterion originally passed in via the class' constructor. Determines whether this object is equal to another object. The object to compare to this object. if is equal to this object; otherwise, . Returns the hash code for the object. The hash code. Performs post-processing on a created specimen. Initializes a new instance of the class with the supplied parameters. The to decorate. The action to perform on the created specimen. Initializes a new instance of the class with the supplied parameters. The to decorate. The action to perform on the created specimen. Initializes a new instance of the class with the supplied parameters. The to decorate. The action to perform on the created specimen. A specification which is used to determine whether postprocessing should be performed for a request. Initializes a new instance of the class. The to decorate. The command to apply to the created specimen. Initializes a new instance of the class. The to decorate. The command to apply to the created specimen. A specification which is used to determine whether postprocessing should be performed Composes the supplied builders. The builders to compose. A new instance containing as child nodes. Performs post-processing on a created specimen. The type of specimen. Initializes a new instance of the class with the supplied parameters. The to decorate. The action to perform on the created specimen. Initializes a new instance of the class with the supplied parameters. The to decorate. The action to perform on the created specimen. Initializes a new instance of the class. The to decorate. The command to apply to the created specimen. Initializes a new instance of the class with the supplied parameters. The to decorate. The action to perform on the created specimen. A specification which is used to determine whether postprocessing should be performed for a request. Initializes a new instance of the class. The to decorate. The command to apply to the created specimen. A specification which is used to determine whether postprocessing should be performed for a request. builder, command, or specification is null. Gets the action to perform on created specimens. Gets the command, which is applied during postprocessing. The command supplied via one of the constructors. Gets the decorated builder. Gets the filter that determines whether should be executed. Creates a new specimen based on a request and performs an action on the created specimen. The request that describes what to create. A context that can be used to create other specimens. The requested specimen if possible; otherwise a instance. The can be any object, but will often be a or other instances. Composes the supplied builders. The builders to compose. A new instance containing as child nodes. Returns an enumerator that iterates through the collection. A that can be used to iterate through the collection. A marker to indicate that request of this type should not be skipped in the request path. Relays a request for a property to a with a seed based on the property's name. Creates a specimen based on a requested property. The request that describes what to create. A context that can be used to create other specimens. A specimen created from a encapsulating the property type and name of the requested property, if possible; otherwise, a instance. A specification that determines whether the request is a request for a matching a particular property, according to the supplied comparison rules. Initializes a new instance of the class. The with which the requested type should be compatible. The name which the requested name should match exactly. or is . Initializes a new instance of the class. The criterion used to match the requested with the specified value. is . The with which the requested type should be compatible. The name which the requested name should match exactly. Evaluates a request for a specimen. The specimen request. if is satisfied by the Specification; otherwise, . Represents a criterion for comparing a candidate property against a desired type and name. Sometimes, you may need to evaluate various candidate values, looking for one that has a desired property type and name. This class represents such an evaluation criterion. Initializes a new instance of the class with the desired field type and name criteria. The criterion indicating the desired field type. The criterion indicating the desired field name. or is . Compares a candidate object against this . The candidate to compare against this object. if is deemed equal to this instance; otherwise, . This method compares the candidate against and . If the property's type matches the type criterion, and its name matches the name criterion, the return value is . Determines whether this object is equal to another object. The object to compare to this object. if is equal to this object; otherwise, . The type criterion originally passed in via the class' constructor. The name criterion originally passed in via the class' constructor. Returns the hash code for the object. The hash code. Encapsulates a range for values of a given type. Initializes a new instance of the class. Type of the operand. The minimum. The maximum. Gets the type of the operand. The type of the operand. Gets the minimum value. Gets the maximum value. Determines whether the specified is equal to this instance. The to compare with this instance. true if the specified is equal to this instance; otherwise, false. The parameter is null. Returns a hash code for this instance. A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. Indicates whether the current object is equal to another object of the same type. An object to compare with this object. true if the current object is equal to the parameter; otherwise, false. Relay the to the request for the sequence of the fixed length. Request for the sequence of values. Sequece size is constrained by the and values. Gets the request the sequence should contain result of. Gets the minimum number of items in the sequence. Gets the maximum number of items in the sequence. Initializes a new instance of . A command which invokes to fill all readonly properties in a specimen that implement . Constructs an instance of , used to fill all readonly properties in a specimen that implement . Constructs an instance of , used to fill all readonly properties in a specimen that implement . The query that will be applied to select readonly collection properties. Gets the query used to determine whether or not a specified type has readonly collection properties. Invokes to fill all readonly properties in a specimen that implement . The specimen on which readonly collection properties should be filled. An that is used to create the elements used to fill collections. Thrown if or is . A specification that evaluates whether or not a request is for a type containing readonly properties that implement . The default query that will be applied to select readonly collection properties. Constructs an instance of with a default query applied for selection of readonly collection properties. Constructs an instance of , which will use the query supplied in to determine whether or not a type contains readonly collection properties. The query that will be applied to select readonly collection properties. Gets the query used to determine whether or not a specified type has readonly collection properties. Evaluates whether or not the is for a type containing readonly properties that implement . The specimen request. if the is for a type containing readonly properties that implement ; otherwise. Relays a request for an to a request for a and retuns the result. Creates a new specimen based on a request. The request that describes what to create. A context that can be used to create other specimens. A populated of the appropriate item type if possible; otherwise a instance. If is a request for an and can satisfy a request for a populated specimen of that type, this value will be returned. If not, the return value is a instance. A query which returns readonly properties from specified types. Select those properties that are readonly from . The type which readonly properties should be selected from. Properties belonging to that are readonly. Base class for recursion handling. Tracks requests and reacts when a recursion point in the specimen creation process is detected. Initializes a new instance of the class. Initializes a new instance of the class. Initializes a new instance of the class. Initializes a new instance of the class. Initializes a new instance of the class. Initializes a new instance of the class. Gets the decorated builder supplied via the constructor. Gets the recursion handler originally supplied as a constructor argument. The recursion depth at which the request will be treated as a recursive request. Gets the comparer supplied via the constructor. Gets the recorded requests so far. Handles a request that would cause recursion. Encapsulates a pattern for a regular expression. Initializes a new instance of the class. The pattern. Gets the regular expression pattern. Determines whether the specified is equal to this instance. The to compare with this instance. true if the specified is equal to this instance; otherwise, false. The parameter is null. Returns a hash code for this instance. A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. Indicates whether the current object is equal to another object of the same type. An object to compare with this object. true if the current object is equal to the parameter; otherwise, false. Event args about a request for a specimen. Initializes a new instance of the class with the supplied values. A request for a specimen. The recursion depth at which occurred. Gets the recursion depth at which occurred. Gets the original request for a specimen. Creates a new specimen from a using a function. The type of specimen to create. Initializes a new instance of the class. The function that will create the specimen from a seed. Gets the factory that is used to create specimens from a seed. Creates a new specimen based on a seeded request. The request that describes what to create. A context that can be used to create other specimens. The result of the contained function if is a for the correct type and containing a seed of the same type; otherwise a instance. Encapsulates a seed for a given type. Initializes a new instance of the class. The request for which the seed applies. The seed. Gets the seed value. Gets the inner request for which the seed applies. Determines whether this instance equals another instance. The other instance. if this instance equals ; otherwise, . Returns the hash code for the instance. The hash code for the instance. Determines whether this instance equals another instance. The other instance. if this instance equals ; otherwise, . Unwraps a request for a to a request for its while ignoring the . Creates an anonymous value by unwrapping a seeded request and ignoring the seed. The request that describes what to create. A context that can be used to create other specimens. A specimen based on if possible; otherwise, . If is a seeded request, the Create method unwraps the inner request and forwards it to . The seed value is ignored. The purpose of this class is to provide a fallback to handle seeded requests that no other instances have been able to handle. By ignoring the seed value, it handles those scenarios where the seed value and the inner request don't match and can't be combined, ensuring that at least some value is returned. A specification that evaluates seeded requests for types against a target type. Initializes a new instance of the class. The target type. Gets the type targeted by this . Evaluates a request for a specimen. The specimen request. if is a for a type that matches ; otherwise, . Encapsulates logic that determines whether a request is a request for a . Evaluates a request for a specimen to determine whether it's a request for a . The specimen request. if is a request for a ; otherwise, . Encapsulates logic that determines whether a request is a request for a . Evaluates a request for a specimen to determine whether it's a request for a . The specimen request. if is a request for a ; otherwise, . Encapsulates logic that determines whether a request is a request for a . Evaluates a request for a specimen to determine whether it's a request for a . The specimen request. if is a request for a ; otherwise, . A no-op that identifies a certain property or field. The type of specimen. The type of property or field. This class can be used to reserve an identified property or field without doing anything with it. Initializes a new instance of the class with the supplied property picker expression. An expression that identifies a property or field. Gets the member identified by the expression supplied through the constructor. Does nothing. A specimen. An . Evaluates whether a request matches the property or field reserved by this command. The specimen request. if is is a or that identifies the property or field reserved by this ; otherwise, . Contains extension methods for working with instances. Determines whether two instances are define the same graph. Two instances define the same graph if they themselves are equal to each other, and all their child nodes recursively are equal to each other. Determines whether two instances are define the same graph. Two instances define the same graph if they themselves are equal to each other, and all their child nodes recursively are equal to each other. Equality is defined by . Finds the first node in the passed graph that matches the specified predicate. If nothing is found - null is returned. Returns the first node in the graph that matches the specified predicate. If no node is present - fails with exception. Exposes convenience methods for producing well-known object graphs. Creates the appropriate initial graph for a . The type of specimen to compose. A new instance with an appropriate initial underlying graph. Creates a graph for a typed node. The type of the target specimen that this node can produce. The factory which actually produces specimen instances. A new instance with an appropriate underlying graph. While the caller must still supply the which produces the specimens, this method wraps that factory in appropriate filters and relays to ensure that this node handles and produces only specimens of . Default implementation of . Initializes a new instance of with the supplied . The builder that will handle requests. Gets the contained by the instance. Creates an anonymous variable (specimen) based on a request by delegating the request to its contained . The request that describes what to create. The result of a request to the contained . Event arguments about a created specimen. Initializes a new instance of the class with the supplied values. A request for a specimen. The specimen that was created base on . The recursion depth at which occurred. Gets the specimen that was created from . Creates a new specimen using a . The type of specimen to create. Initializes a new instance of the class. The func that will create specimens. Gets the factory that will create specimens. Creates a new specimen based on a request. The request that describes what to create. A context that can be used to create other specimens. The specimen created by the Func contained by this instance. is ignored. Instead, the Func contained by this instance is used to create a specimen. Creates a new specimen using a . The type of the parameter provided to the Func. The type of specimen to create. Initializes a new instance of the class. The func that will create specimens. The input parameter to will be supplied by the passed to the method. Gets the factory that creates specimens. Creates a new specimen based on a request. The request that describes what to create. A context that can be used to create other specimens. The specimen created by the Func contained by this instance. is ignored. Instead, the Func contained by this instance is used to create a specimen. The parameter for the Func is supplied by . Creates a new specimen using a . The type of the first parameter provided to the Func. The type of the second parameter provided to the Func. The type of specimen to create. Initializes a new instance of the class. The func that will create specimens. The input parameters to will be supplied by the passed to the method. Gets the factory that creates specimens. Creates a new specimen based on a request. The request that describes what to create. A context that can be used to create other specimens. The specimen created by the Func contained by this instance. is ignored. Instead, the Func contained by this instance is used to create a specimen. The parameters for the Func is supplied by . Creates a new specimen using a . The type of the first parameter provided to the Func. The type of the second parameter provided to the Func. The type of the third parameter provided to the Func. The type of specimen to create. Initializes a new instance of the class. The func that will create specimens. The input parameters to will be supplied by the passed to the method. Gets the factory that creates specimens. Creates a new specimen based on a request. The request that describes what to create. A context that can be used to create other specimens. The specimen created by the Func contained by this instance. is ignored. Instead, the Func contained by this instance is used to create a specimen. The parameters for the Func is supplied by . Creates a new specimen using a . The type of the first parameter provided to the Func. The type of the second parameter provided to the Func. The type of the third parameter provided to the Func. The type of the fourth parameter provided to the Func. The type of specimen to create. Initializes a new instance of the class. The func that will create specimens. The input parameters to will be supplied by the passed to the method. Gets the factory that creates specimens. Creates a new specimen based on a request. The request that describes what to create. A context that can be used to create other specimens. The specimen created by the Func contained by this instance. is ignored. Instead, the Func contained by this instance is used to create a specimen. The parameters for the Func is supplied by . Unwraps a request for many instances and returns the results as a stable list. In contrast to this alternative implementation returns the sequence wrapped in a . This means that the iterator will yield the same instances across multiple iterations. By default this class is not used by , but it can be used to override the dynamic enumerable behavior by adding it to . Creates a new specimen based on a request. The request that describes what to create. A context that can be used to create other specimens. Many specimens if is a instance; otherwise a instance. The sequence of specimens returned is stable which means that it can be iterated over more than once and be expected to yield the same instances every time. Encapsulates a static method. Initializes a new instance of the class. The methodInfo. Initializes a new instance of the class. The method info. The method parameters. Gets the method. Gets information about the parameters of the method. Determines whether the specified is equal to this instance. The to compare with this instance. true if the specified is equal to this instance; otherwise, false. The parameter is null. Returns a hash code for this instance. A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. Invokes the method with the supplied parameters. The parameters. The result of the method call. Indicates whether the current object is equal to another object of the same type. An object to compare with this object. true if the current object is equal to the parameter; otherwise, false. Selects public static methods that has the same parameters of another method, ignoring optional parameters and return type. The main target of this implementation is to be able to late bind to a method even if it has optional parameters added to it. The order of the methods are based on the match of parameters types of both methods, favoring the method with exactly same parameters to be returned first. Initializes a new instance of the class. The method info to compare. Initializes a new instance of the class. The method info to compare. The owner. The template to compare. The owner instance of the . Selects the methods for the supplied type similar to . The type. All public static methods for , ordered by the most similar first. The ordering of the returned methods is based on a score that matches the parameters types of the method with the method parameters. Methods with the highest score are returned before. The score is calculated with the following rules: The methods earns 100 points for each exact match parameter type, it loses 50 points for each hierarchy level down of non-matching parameter type and it loses 1 point for each optional parameter. It also sums the score for the generic type arguments or element type with a 10% weight and will decrease 50 points for the difference between the length of the type arguments array. It also gives 5 points if the type is a class instead of an interface. In case of two methods with an equal score, the ordering is unspecified. Throws an . This can be used as the last item in a to throw an exception instead of letting the containing builder return a instance when it can't satisfy a request. Throws an . The request that describes what to create. A context that can be used to create other specimens. Not used. This method never returns. It always throws an . Decorates an with a node which tracks specimen requests, and when is detected or creation fails with exception, throws an , which includes a description of the request path. Creates a new instance. The specimen builder which creation requests are redirected to. Gets the decorated by this instance. Gets the observed specimen requests, in the order they were requested. Creates a new specimen based on a request by delegating to its decorated builder. The request that describes what to create. A context that can be used to create other specimens. The requested specimen if possible; otherwise a creation exception is thrown. Composes the supplied builders. The builders to compose. A new instance containing as child nodes. Returns an enumerator that iterates through the collection. A that can be used to iterate through the collection. Handles recursion in the specimen creation process by throwing an exception at recursion point. Initializes a new instance of the class. The intercepting builder to decorate. An IEqualitycomparer implementation to use when comparing requests to determine recursion. Initializes a new instance of the class. The builder. Handles a request that would cause recursion by throwing an exception. The recursion causing request. Nothing. Always throws. Composes the supplied builders. The builders to compose. A new instance containing as child nodes. Breaks a recursion by throwing a descriptive exception. Handles a recursive request. The request causing the recursion. Previously recorded, and yet unhandled, requests. An object intended to break the recursion. Always. This method is called when AutoFixture detects an infinite recursion. The is the request that triggered the recursion detection; contains all previous, but still unhandled requests: the current call stack, if you will. This implementation always throws a descriptive exception, instructing the user that the requested type contains a circular reference, and that this is bad API design. The message also contains instructions on how to move on. Trace writer that will write out a trace of object requests and created objects in the pipeline. Initializes a new instance of the class. The output stream for the trace. The to decorate. Gets the decorated by this instance. Gets or sets the formatter for tracing a request. The request trace formatter. Gets or sets the formatter for tracing a created specimen. The created specimen trace formatter. Creates a new specimen based on a request by delegating to its decorated builder. The request that describes what to create. A context that can be used to create other specimens. The requested specimen if possible; otherwise a instance. Composes the supplied builders. The builders to compose. A new instance containing as child nodes. Returns an enumerator that iterates through the collection. A that can be used to iterate through the collection. Tracks any request and passes it on to the container. Tracks any returned object from the container and passes it on. Raised when a specimen is requested. Raised when a specimen was created. Initializes a new instance of the class with a decorated . The to decorate. Gets the builder decorated by this instance. Gets or sets a filter for tracking. By default, tracks all requests and created Specimens, but you can provide a custom filter to only allow certain requests to be traced. As this is a variation of the Specification pattern, the filter must return to allow the request to be tracked. Creates a new specimen based on a request and raises events tracing the progress. The request that describes what to create. A context that can be used to create other specimens. The requested specimen if possible; otherwise a instance. The can be any object, but will often be a or other instances. Raises the event. The event arguments for the event. Raises the event. The event arguments for the event. A that is always . Evaluates a request for a specimen. The specimen request. . The exception that is thrown when AutoFixture is unable to infer the type parameters of a generic method from its arguments. Initializes a new instance of the class. Initializes a new instance of the class from a . The that cannot have its type arguments inferred. Initializes a new instance of the class with a custom . The error message that explains the reason for the exception. Initializes a new instance of the class with a custom and . The error message that explains the reason for the exception. The exception that is the cause of the current exception. Maps a request for one to a request for another Type. Gets the type which is relayed from. Gets the type which is relayed to. Initializes a new instance of the class. The from which the TypeRelay instance should map. The to which the TypeRelay instance should map. The and parameters are used by the method to map a request for the from Type into a request for the to Type. In this example, BaseType is an abstract base class, and DerivedType is a concrete class that derives from BaseType. The Fixture instance is configured to relay all requests for BasetType to requests for DerivedType, so the actual result return from the fixture when BasetType is requested is a DerivedType instance. var fixture = new Fixture(); fixture.Customizations.Add( new TypeRelay( typeof(BaseType), typeof(DerivedType))); var actual = fixture.Create<BaseType>(); Relays a request for the from Type into a request for the to Type. The request that describes what to create. A context that can be used to create other specimens. If is a request for the from Type, an instance of the to Type is returned; otherwise a instance. The from and to Types are defined by constructor arguments. An exact match is performed when evaluating against the from Type - i.e. derived types are not regarded as matches. If the request matches the from Type, an instance of the to Type is requested from the . Encapsulates an operation without identifying any property or field. The type of specimen. Initializes a new instance of the class. The action to perform on a specimen. Gets the action that can be performed on a specimen. Executes on the supplied specimen. The specimen on which the command is executed. An that can be used to resolve other requests. Not used. Evaluates a request for a specimen. The specimen request. . A specification that evaluates whether a request is a request for a value type such as a structure. Evaluates a request for a specimen. The specimen request. if is a that represents a structure; otherwise, . Checks if type is a struct. This will exclude primitive types (int, char etc.) considered as IsPrimitive as well as enums but not .NET structs. Creates new lambda expressions represented by the type. Specimens are typically either of type Expression{Func{T}} or . Creates a new lambda expression represented by the type. The request that describes what to create. Not used. A new instance, if is a request for a ; otherwise, a instance. Relays a request for an to a request for a and returns the result. Creates a new specimen based on a request. The request that describes what to create. A context that can be used to create other specimens. An instance of a if possible; otherwise a instance. If is a request for a and can satisfy a request for a specimen, the 's value will be used when lazy initialization occurs. If not, the return value is a instance. Creates new instances. Creates a new MailAddress. The request that describes what to create. A context that can be used to create other specimens. The requested specimen if possible; otherwise a instance. > The generated MailAddress will have one of the reserved domains, so as to avoid any possibility of tests bothering real email addresses. Maps a call to to a call for . Normally, returns its own implementation of , even if other customizations have changed how IEnumerable<T> are handled. This ensures that CreateMany<T> still returns many instances, even when IEnumerable<T> have been changed to return an empty sequence. If you want to change this default behavior, you can use this customization. Customizes the specified fixture. The fixture to customize. fixture is null. Customizes a so that exhibits the same behavior as a request to create . A customization that enables conventions for well-known types that represents multiple items. When this customization is added to an instance, requests for common sequence and collection types will be satisfied with instances populated with multiple items. Normally, can satisfy requests for and similar collection types, but the returned instances will be empty. When the is added to an , such collection specimens will be populated with items. Please note that apart from the concrete types , etc. this also resolves requests for the related interfaces , etc. This can potentially conflict with other customizations, such as the auto-mocking extensions for AutoFixture. In this case latest customization to be added to a Fixture wins. Customizes the specified fixture by adding conventions for populating sequences and collections. The fixture to customize. Creates new . Creates new instance. Creates a new . The request that describes what to create. A context that can be used to create other specimens. Not used. The requested struct if possible; otherwise a instance. A customization that will turn off the auto population of properties on the target type. Initializes a new instance of the class. The to disable auto population of properties. is null. Customizes the fixture by creating a that has no auto populated properties. The fixture to customize. is null. Decorates a with a with . Initializes new instance of the class with default recursion depth. The default recursion depth will cause null assignment on first recursion. Initializes new instance of the class with specific recursion depth. The recursion depth at which the request will be assigned null. Decorates the supplied with a with . The builder to decorate. decorated with a . Creates a sequence of consecutive numbers, starting at 1. Creates an anonymous number. The request that describes what to create. Not used. The next number in a consecutive sequence, if is a request for a numeric value; otherwise, a instance. A customization that enables numeric specimens to be unique within a specific numeric . When this customization is added to an instance, requests for numeric specimens will be satisfied by returning numbers from a specific sequence. This customization reproduces the generation strategy for numeric specimens used in AutoFixture up to version 2.1. var fixture = new Fixture(); fixture.Customize(new NumericSequencePerTypeCustomization()); Console.WriteLine("Byte specimen is {0}", fixture.Create<byte>()); Console.WriteLine("Int32 specimen is {0}", fixture.Create<int>()); Console.WriteLine("Single specimen is {0}", fixture.Create<float>()); // The output of this program will be: // Byte specimen is 1 // Int32 specimen is 1 // Single specimen is 1 Customizes the specified fixture by adding the specific numeric sequence generators. The fixture to customize. The exception that is thrown when AutoFixture is unable to create an object. Initializes a new instance of the class with a default . Initializes a new instance of the class with a custom . The error message that explains the reason for the exception. Initializes a new instance of the class with a custom and . The error message that explains the reason for the exception. The exception that is the cause of the current exception. The exception that is thrown when AutoFixture is unable to create an object. This exception is supposed to contain the full request path. Decorates an with a . Initializes new instance of the class with default recursion depth. The default recursion depth will omit assignment on first recursion. Initializes new instance of the class with specific recursion depth. The recursion depth at which the request will be omitted. recursionDepth is less than one. Decorates the supplied with an . The builder to decorate. decorated with an . A customization that changes how are generated. Uses . Customizes specified fixture by adding as a default strategy for creating new . The fixture to customize. Creates random value or . Initializes a new instance of the class. Returns or randomly. The request that describes what to create. Not used. or generated randomly using , if is a request for a boolean; otherwise, a instance. Creates a sequence of random printable ASCII characters (Dec 33-126). Initializes a new instance of the class. Creates a new specimen based on a request. The request that describes what to create. A context that can be used to create other specimens. The requested specimen if possible; otherwise a instance. Creates random specimens. The generated values will be within a range of ± two years from today's date, unless a different range has been specified in the constructor. Initializes a new instance of the class. Initializes a new instance of the class for a specific range of dates. The lower bound of the date range. The upper bound of the date range. is greater than . Creates a new specimen based on a request. The request that describes what to create. Not used. A new specimen, if is a request for a value; otherwise, a instance. A customization that enables numeric specimens to be random and unique. Customizes the specified fixture by adding a . The fixture to customize. fixture is null. Creates a sequence of random, unique, numbers starting at 1. Initializes a new instance of the class with the default limits, 255, 32767, and 2147483647. Initializes a new instance of the class. A sequence of at least two ascending numbers. Initializes a new instance of the class. An array of at least two ascending numbers. Gets the sequence of limits. The sequence of limits. Creates an anonymous number. The request that describes what to create. A context that can be used to create other specimens. The next random number in a sequence, if is a request for a numeric value; otherwise, a instance. Returns upper limit + 1 when expecting to use upper as max value in Random.Next(Int32,Int32). This ensures that the upper limit is included in the possible values returned by Random.Next(Int32,Int32) When not expecting to use Random.Next(Int32,Int32). It returns the original upper limit. A customization that enables numeric specimens to be random and unique per equivalence set of type and range limits. Customizes the specified fixture by adding a . The fixture to customize. fixture is null. Creates a random sequence for a given type within a given range without repeating in the range until all values are exhausted. Once exhausted, will automatically reset the set and continue choosing randomly within the range. Multiple requests (whether the same or different object) for the same operand type, minimum, and maximum are treated as being drawn from the same set. Initializes a new instance of the class. Creates a random number within the request range. The request that describes what to create. Other requests for same type and limits denote the same set. A context that can be used to create other specimens. The next random number in a range is a request for a numeric value; otherwise, a instance. Choose the RandomNumericSequenceGenerator to fulfill the request. Will add the request as a new key to generatorMap if the request does not already have a generator for it. Throws ArgumentException if either of the limits in the request are non-numeric. Creates a strictly increasing sequence of ranged numbers, starting at range minimum. Sequence restarts at range minimum when range maximum is exceeded. Initializes a new instance of the class. Creates a new number based on a RangedNumberRequest. The request that describes what to create. A context that can be used to create other specimens. The requested number if possible; otherwise a instance. Decorates with a which invokes if the specimen meets the . Constructs an instance of , used to decorate an with a which invokes if the specimen meets the . Constructs an instance of , used to decorate an with a which invokes if the specimen meets the . The query that will be applied to select readonly collection properties. Gets the query used to determine whether or not a specified type has readonly collection properties. Decorates the supplied with a which invokes if the specimen meets the . The builder to decorate. decorated with a . Thrown if is . Creates a string that is guaranteed to match a RegularExpressionRequest. Initializes a new instance of the class. Creates a string that is guaranteed to match a RegularExpressionRequest. The request that describes what to create. A context that can be used to create other specimens. The requested specimen if possible; otherwise a instance. Resolver of the member type for the class member requests (e.g. PropertyInfo, FieldInfo). Tries to determine requested member type and returns it. Relay request object. Output variable for resolved request member type. A marker class, used to explicitly identify the residue collector role in an graph. The only purpose of this class is to act as an easily identifiable container. This makes it easier to find the collection of residue collectors even if it is buried deep in a larger graph. Initializes a new instance of the class. The builder to decorate. After initialization is available via the property. is null. Composes the supplied builders. The builders to compose. A new instance containing as child nodes. Creates a new specimen based on a request. The request that describes what to create. A context that can be used to create other specimens. The requested specimen if possible; otherwise a instance. The can be any object, but will often be a or other instances. Returns the decorated builder as a sequence. wrapped in an Iterator. Returns an enumerator that iterates through a collection. An object that can be used to iterate through the collection. Gets the builder decorated by this instance. The builder originally supplied via the constructor. Creates a sequence of consecutive numbers, starting at 1. Initializes a new instance of the class. Creates an anonymous number. The next number in a consecutive sequence. Creates an anonymous number. The next number in a consecutive sequence. Obsolete: Please move over to using Create() as this method will be removed in the next release. Creates an anonymous . The request that describes what to create. Not used. The next in a consecutive sequence, if is a request for an SByte; otherwise, a instance. Creates a sequence of consecutive numbers, starting at 1. Initializes a new instance of the class. Creates an anonymous number. The next number in a consecutive sequence. Creates an anonymous number. The next number in a consecutive sequence. Obsolete: Please move over to using Create() as this method will be removed in the next release. Creates an anonymous number. The request that describes what to create. Not used. The next number in a consecutive sequence, if is a request for a ; otherwise, a instance. A collection of instances, which can be used to produce a stack of singleton instances at the root of any ISpecimenBuilderNode graph. Apart from containing a collection of instances, the SingletonSpecimenBuilderNodeStackCollectionAdapter also holds a reference to a graph. Every time an ISpecimenBuilderTransformation instance is added to the collection, it is also applied to the graph by invoking against the existing graph. This doesn't change the existing graph, but produces a new graph, which then replaces the previous graph. The current graph is always available via the property. For all mutating operations on the collection, the SingletonSpecimenBuilderNodeStackCollectionAdapter replaces its internal graph with a new graph that encapsulates the new state. The original graph is not mutated, but when a seemingly mutating method is invoked, the event is raised. Initializes a new instance of the class. The base graph upon which the contained are applied. A predicate which identifies the wrapped graph. The transformations to apply to . The and subsequent transformations added to the instance are applied to a base graph. The base graph is found by looking for a node within the graph where returns true. Occurs when this instance changes its internal view of the encapsulated graph. When this instance performs a mutating action, it replaces its previously encapsulated graph with a new graph where the change has been applied. The event arguments raised with the event contains a reference to the new graph. Gets the full graph. The full graph produced by applying the collection of instances to the base graph. Removes all items from the collection. Since this is a potentially mutating operation it may raise the event. Inserts an element into the collection at the specified index. The zero-based index at which should be inserted. The item to insert. Since this is a mutating operation it raises the event. Removes the element at the specified index of the collection. The zero-based index of the element to remove. Since this is a mutating operation it raises the event. Replaces the element at the specified index. The zero-based index of the element to replace. The new value for the element at the specified index. Since this is a mutating operation it raises the event. Raises the event. The instance containing the event data. Presents a horizontal slice of an graph as if it was a collection. This class encapsulates an graph and presents a horizontal slice of the graph as if it was a collection. For all mutating operations on the collection, the SpecimenBuilderNodeCollectionAdapter replaces its internal graph with a new graph that encapsulates the new state. The original graph is not mutated, but when a seemingly mutating method is invoked, the event is raised. Initializes a new instance of the class. The underlying graph. A predicate which is used to identify a node in . must identify a single node in . If zero or several nodes are identified by this predicate, an exception will be thrown. The node identified by the predicate is used as a source of the collection exposed by the SpecimenBuilderNodeCollectionAdapter class. When you enumerate all items in the collection, you really enumerate the children of the identified node. Occurs when this instance changes its internal view of the encapsulated graph. When this instance performs a mutating action, it replaces its previously encapsulated graph with a new graph where the change has been applied. The event arguments raised with the event contains a reference to the new graph. Determines the index of a specific item in the collection. The object to locate in the collection. The index of if found in the list; otherwise, -1. In this context, the term collection refers to the horizontal slice through the encapsulated graph that this instance exposes as a collection. Inserts an item to the collection at the specified index. The zero-based index at which should be inserted. The object to insert into the collection. In this context, the term collection refers to the horizontal slice through the encapsulated graph that this instance exposes as a collection. Since this is a mutating operation it raises the event. Removes the item at the specified index from the collection. The zero-based index of the item to remove. In this context, the term collection refers to the horizontal slice through the encapsulated graph that this instance exposes as a collection. Since this is a mutating operation it raises the event. Gets or sets the at the specified index. The at the specified index. The zero-based index of the element to get or set. Since setting the value is a mutating operation it raises the event. The at the specified index. Adds an item to the collection. he object to add to the collection. In this context, the term collection refers to the horizontal slice through the encapsulated graph that this instance exposes as a collection. Since this is a mutating operation it raises the event. Removes all items from the collection. In this context, the term collection refers to the horizontal slice through the encapsulated graph that this instance exposes as a collection. Since this is a mutating operation it raises the event. Determines whether the collection contains a specific value. The item to locate in the collection. if is found in the collection; otherwise, . In this context, the term collection refers to the horizontal slice through the encapsulated graph that this instance exposes as a collection. Copies the elements of the collection to an , starting at a particular Array index. The one-dimensional that is the destination of the elements copied from the collection. The Array must have zero-based indexing. The zero-based index in array at which copying begins. In this context, the term collection refers to the horizontal slice through the encapsulated graph that this instance exposes as a collection. Gets the number of elements contained in the collection. The number of elements contained in the collection. In this context, the term collection refers to the horizontal slice through the encapsulated graph that this instance exposes as a collection. Gets a value indicating whether this instance is read only. if this instance is read only; otherwise, . Removes the first occurrence of a specific object from the collection. The object to remove from the collection. if was successfully removed from the collection; otherwise, . This method also returns if the item is not found in the original collection. In this context, the term collection refers to the horizontal slice through the encapsulated graph that this instance exposes as a collection. Since this is a mutating operation it raises the event. Returns an enumerator that iterates through the collection. A that can be used to iterate through the collection. In this context, the term collection refers to the horizontal slice through the encapsulated graph that this instance exposes as a collection. Returns an enumerator that iterates through a collection. An object that can be used to iterate through the collection. In this context, the term collection refers to the horizontal slice through the encapsulated graph that this instance exposes as a collection. Gets the graph which is the backing store of the collection. The graph which is the backing store of the collection. In this context, the term collection refers to the horizontal slice through the encapsulated graph that this instance exposes as a collection. Raises the event. The instance containing the event data. Event arguments concerning an instance. Initializes a new instance of the class. The graph associated with an event. graph. Gets the graph associated with an event. Provides convenience methods to perform (partially) anonymous Commands. Invokes the supplied action with an anonymous parameter value. Invokes the supplied action with anonymous parameter values. Invokes the supplied action with anonymous parameter values. Invokes the supplied action with anonymous parameter values. Creates anonymous variables from or instances. Creates an anonymous variable of the requested type. The type of object to create. The context used to resolve the type request. An anonymous object of type . Creates an anonymous variable of the requested type. The type of object to create. The context used to resolve the type request. An anonymous object of type . Obsolete: Please move over to using Create<T>() as this method will be removed in the next release. Creates an anonymous variable of the requested type. The type of object to create. The fixture used to resolve the type request. An anonymous object of type . Creates an anonymous variable of the requested type. The type of object to create. The builder used to resolve the type request. An anonymous object of type . Creates an anonymous variable of the requested type. The type of object to create. The composer used to resolve the type request. An anonymous object of type . The only purpose of this explicit overload is to support type inferencing. Creates an anonymous variable of the requested type. The type of object to create. The composer used to resolve the type request. An anonymous object of type . Obsolete: "Please move over to using Create{T} as this method will be removed in the next release. Creates many anonymous objects. The type of objects to create. The builder used to resolve the type request. A sequence of anonymous object of type . The CreateMany implementation always returns a new instance of . Even if IEnumerable<T> is Frozen by the method or explicitly assigned with the method, the CreateMany method returns a new, independent instance of IEnumerable<T>. However, you can change this behavior, for example by applying the customization. Creates many anonymous objects. The type of objects to create. The context used to resolve the type request. A sequence of anonymous object of type . The CreateMany implementation always returns a new instance of . Even if IEnumerable<T> is Frozen by the method or explicitly assigned with the method, the CreateMany method returns a new, independent instance of IEnumerable<T>. However, you can change this behavior, for example by applying the customization. Creates many anonymous objects. The type of objects to create. The composer used to resolve the type request. A sequence of anonymous object of type . The CreateMany implementation always returns a new instance of . Even if IEnumerable<T> is Frozen by the method or explicitly assigned with the method, the CreateMany method returns a new, independent instance of IEnumerable<T>. However, you can change this behavior, for example by applying the customization. The only purpose of this explicit overload is to support type inferencing. Creates many anonymous objects. The type of objects to create. The builder used to resolve the type request. The number of objects to create. A sequence of anonymous objects of type . The CreateMany implementation always returns a new instance of . Even if IEnumerable<T> is Frozen by the method or explicitly assigned with the method, the CreateMany method returns a new, independent instance of IEnumerable<T>. However, you can change this behavior, for example by applying the customization. Creates many anonymous objects. The type of objects to create. The context used to resolve the type request. The number of objects to create. A sequence of anonymous objects of type . The CreateMany implementation always returns a new instance of . Even if IEnumerable<T> is Frozen by the method or explicitly assigned with the method, the CreateMany method returns a new, independent instance of IEnumerable<T>. However, you can change this behavior, for example by applying the customization. Creates many anonymous objects. The type of objects to create. The composer used to resolve the type request. The number of objects to create. A sequence of anonymous objects of type . The CreateMany implementation always returns a new instance of . Even if IEnumerable<T> is Frozen by the method or explicitly assigned with the method, the CreateMany method returns a new, independent instance of IEnumerable<T>. However, you can change this behavior, for example by applying the customization. The only purpose of this explicit overload is to support type inferencing. Provides convenience methods to perform (partially) anonymous Queries. Invokes the supplied function with an anonymous parameter value and returns the result. Invokes the supplied function with anonymous parameter values and returns the result. Invokes the supplied function with anonymous parameter values and returns the result. Invokes the supplied function with anonymous parameter values and returns the result. A customization that makes sequences (i.e. stable instead of dynamic. A sequence (i.e. an instance of is not guaranteed to be stable or finite; it might, in fact, represent a Generator that creates an Iterator that can go on for ever. Even if the sequence is finite, it may not be stable because it may yield new items every time it's iterated. The StableFiniteSequenceCustomization class encapsulates a change in behavior that guarantees that an instance will resolve a request for a sequence into a stable sequence. Adds a to an . The fixture to customize. Creates new specimens based on a incremental sequence of days. Initializes a new instance of the class. The base value used to generate specimens. Creates a new instance. The request that describes what to create. Not used. A new instance, if is a request for a ; otherwise, a instance. Creates string values based on a supplied factory. Initializes a new instance of the class with the supplied specimen factory. A factory that creates a anonymous variables (specimens). The instance will call on the created specimen. Gets the factory used to specimens. Creates string specimens by invoking the supplied specimen factory and calling on the result. The request that describes what to create. Not used. The string representation of a specimen created by the contained specimen factory. Unwraps a request for a string to a request for a string and prefixes the seed to the result. Creates an anonymous string based on a seed. The request that describes what to create. A context that can be used to create other specimens. A string with the seed prefixed to a string created by if possible; otherwise, . This method only returns an instance if a number of conditions are satisfied. must represent a request for a seed string, and must be able to create a string. A customization that changes how custom are generated. Uses . Customizes specified fixture by adding as a default strategy for creating new custom that has only default constructor. The fixture to customize. Creates instances of and . The status will be set to and will be resolved by a given . Creates instances of and . The status will be set to and will be resolved by the . The request that describes what to create. The context that will be used to resolve the result value for generic tasks. A task whose status is set to . If a generic task was requested, its result was resolved from the . Decorates a with a with . Decorates the supplied with a with . The builder to decorate. decorated with a . Decorates an with a to enable tracing for diagnosing how the decorated builder builds up specimens. Initializes a new instance of the class with the default , which is . Initializes a new instance of the class with the supplied . The writer to which diagnostics is written. Gets the writer to which diagnostics information is written. Decorates the supplied builder with a . The builder to transform. A new that decorates using . Generates Type instances. Creates a new specimen based on a request. The request that describes what to create. A context that can be used to create other specimens. The if is a Type Type; otherwise a instance. Creates a sequence of consecutive numbers, starting at 1. Initializes a new instance of the class. Creates an anonymous number. The next number in a consecutive sequence. Creates an anonymous number. The request that describes what to create. Not used. The next number in a consecutive sequence, if is a request for an unsigned 16-bit integer; otherwise, a instance. Creates a sequence of consecutive numbers, starting at 1. Initializes a new instance of the class. Creates an anonymous number. The next number in a consecutive sequence. Creates an anonymous number. The request that describes what to create. Not used. The next number in a consecutive sequence, if is a request for an unsigned integer; otherwise, a instance. Creates a sequence of consecutive numbers, starting at 1. Initializes a new instance of the class. Creates an anonymous number. The next number in a consecutive sequence. Creates an anonymous number. The request that describes what to create. Not used. The next number in a consecutive sequence, if is a request for an unsigned 64-bit integer; otherwise, a instance. If member request (e.g. PropertyInfo, FieldInfo, ParameterInfo) is passed, extracts the member type and uses the inner to resolve request value. Gets or sets resolver used to extract member type. Builder used to resolve the unwrapped member request. Creates a new instance of . Creates new instances. Creates a new specimen based on a request. The request that describes what to create. A context that can be used to create other specimens. The requested specimen if possible; otherwise a instance. Represents a URI scheme name. Scheme names consist of a sequence of characters beginning with a letter and followed by any combination of letters, digits, plus ('+'), period ('.'), or hyphen ('-'). Initializes a new instance of the class using "scheme" as the default URI scheme name. Initializes a new instance of the class. The scheme name. Returns a that represents the URI scheme name for this instance. A that represents the URI scheme name for this instance. Determines whether the specified is equal to this instance. The to compare with this instance. true if the specified is equal to this instance; otherwise, false. The parameter is null. Returns a hash code for this instance. A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. Gets the scheme name. Indicates whether the current object is equal to another object of the same type. An object to compare with this object. true if the current object is equal to the other parameter; otherwise, false. Creates new instances. Creates a new specimen based on a request. The request that describes what to create. A context that can be used to create other specimens. The requested specimen if possible; otherwise a instance. Handles creation requests for instances, returning always the same . Generates a Encoding specimen based on a type request. The request that describes what to create. A context that can be used to create other specimens. The requested specimen if possible; otherwise a instance. The generated Encoding will always be the same as .