Class SpecimenQuery
Provides convenience methods to perform (partially) anonymous Queries.
Inheritance
System.Object
SpecimenQuery
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: AutoFixture
Assembly: AutoFixture.dll
Syntax
public static class SpecimenQuery
Methods
| Improve this Doc View SourceGet<T, TResult>(ISpecimenBuilder, Func<T, TResult>)
Invokes the supplied function with an anonymous parameter value and returns the result.
Declaration
public static TResult Get<T, TResult>(this ISpecimenBuilder builder, Func<T, TResult> function)
Parameters
Type | Name | Description |
---|---|---|
ISpecimenBuilder | builder | |
System.Func<T, TResult> | function |
Returns
Type | Description |
---|---|
TResult |
Type Parameters
Name | Description |
---|---|
T | |
TResult |
Get<T1, T2, TResult>(ISpecimenBuilder, Func<T1, T2, TResult>)
Invokes the supplied function with anonymous parameter values and returns the result.
Declaration
public static TResult Get<T1, T2, TResult>(this ISpecimenBuilder builder, Func<T1, T2, TResult> function)
Parameters
Type | Name | Description |
---|---|---|
ISpecimenBuilder | builder | |
System.Func<T1, T2, TResult> | function |
Returns
Type | Description |
---|---|
TResult |
Type Parameters
Name | Description |
---|---|
T1 | |
T2 | |
TResult |
Get<T1, T2, T3, TResult>(ISpecimenBuilder, Func<T1, T2, T3, TResult>)
Invokes the supplied function with anonymous parameter values and returns the result.
Declaration
public static TResult Get<T1, T2, T3, TResult>(this ISpecimenBuilder builder, Func<T1, T2, T3, TResult> function)
Parameters
Type | Name | Description |
---|---|---|
ISpecimenBuilder | builder | |
System.Func<T1, T2, T3, TResult> | function |
Returns
Type | Description |
---|---|
TResult |
Type Parameters
Name | Description |
---|---|
T1 | |
T2 | |
T3 | |
TResult |
Get<T1, T2, T3, T4, TResult>(ISpecimenBuilder, Func<T1, T2, T3, T4, TResult>)
Invokes the supplied function with anonymous parameter values and returns the result.
Declaration
public static TResult Get<T1, T2, T3, T4, TResult>(this ISpecimenBuilder builder, Func<T1, T2, T3, T4, TResult> function)
Parameters
Type | Name | Description |
---|---|---|
ISpecimenBuilder | builder | |
System.Func<T1, T2, T3, T4, TResult> | function |
Returns
Type | Description |
---|---|
TResult |
Type Parameters
Name | Description |
---|---|
T1 | |
T2 | |
T3 | |
T4 | |
TResult |