Class MockTransformation
Mocks a transformation
Inherited Members
Namespace: NMF.Transformations.Tests
Assembly: NMF.Transformations.dll
Syntax
public class MockTransformation : Transformation
Remarks
The mocking effect comes from the fact that the mock transformation does not initialize all of its transformation rules. Instead, the transformation rules must be initialized manually by calling the RegisterDependencies method
Constructors
| Edit this page View SourceMockTransformation(params GeneralTransformationRule[])
Creates a new mock transformation with the given transformation rules
Declaration
public MockTransformation(params GeneralTransformationRule[] rules)
Parameters
Type | Name | Description |
---|---|---|
GeneralTransformationRule[] | rules | A collection of transformation rules |
MockTransformation(IEnumerable<GeneralTransformationRule>)
Creates a new mock transformation with the given transformation rules
Declaration
public MockTransformation(IEnumerable<GeneralTransformationRule> rules)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<GeneralTransformationRule> | rules | A collection of transformation rules |