Class SpecimenCommand
Provides convenience methods to perform (partially) anonymous Commands.
Inheritance
System.Object
SpecimenCommand
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 SpecimenCommand
Methods
| Improve this Doc View SourceDo<T>(ISpecimenBuilder, Action<T>)
Invokes the supplied action with an anonymous parameter value.
Declaration
public static void Do<T>(this ISpecimenBuilder builder, Action<T> action)
Parameters
Type | Name | Description |
---|---|---|
ISpecimenBuilder | builder | |
System.Action<T> | action |
Type Parameters
Name | Description |
---|---|
T |
Do<T1, T2>(ISpecimenBuilder, Action<T1, T2>)
Invokes the supplied action with anonymous parameter values.
Declaration
public static void Do<T1, T2>(this ISpecimenBuilder builder, Action<T1, T2> action)
Parameters
Type | Name | Description |
---|---|---|
ISpecimenBuilder | builder | |
System.Action<T1, T2> | action |
Type Parameters
Name | Description |
---|---|
T1 | |
T2 |
Do<T1, T2, T3>(ISpecimenBuilder, Action<T1, T2, T3>)
Invokes the supplied action with anonymous parameter values.
Declaration
public static void Do<T1, T2, T3>(this ISpecimenBuilder builder, Action<T1, T2, T3> action)
Parameters
Type | Name | Description |
---|---|---|
ISpecimenBuilder | builder | |
System.Action<T1, T2, T3> | action |
Type Parameters
Name | Description |
---|---|
T1 | |
T2 | |
T3 |
Do<T1, T2, T3, T4>(ISpecimenBuilder, Action<T1, T2, T3, T4>)
Invokes the supplied action with anonymous parameter values.
Declaration
public static void Do<T1, T2, T3, T4>(this ISpecimenBuilder builder, Action<T1, T2, T3, T4> action)
Parameters
Type | Name | Description |
---|---|---|
ISpecimenBuilder | builder | |
System.Action<T1, T2, T3, T4> | action |
Type Parameters
Name | Description |
---|---|
T1 | |
T2 | |
T3 | |
T4 |