Class MockComputationCollection
- Namespace
 - NMF.Transformations.Tests
 
- Assembly
 - NMF.Transformations.dll
 
Represents a collection of computations used by the mocked context
public class MockComputationCollection : ObservableCollection<ITraceEntry>, IList<ITraceEntry>, ICollection<ITraceEntry>, IReadOnlyList<ITraceEntry>, IReadOnlyCollection<ITraceEntry>, IEnumerable<ITraceEntry>, IList, ICollection, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged
  - Inheritance
 - 
      
      
      
      MockComputationCollection
 
- Implements
 
- Inherited Members
 
Constructors
MockComputationCollection(MockContext)
Creates a new mock computation collection for the given mocked context
public MockComputationCollection(MockContext context)
  Parameters
contextMockContextThe mock context in which to create the computation collection
Methods
Add(GeneralTransformationRule, object[])
Creates a computation mock for the given transformation rule with the given input and the given context and adds the computation to the context
public MockComputation Add(GeneralTransformationRule transformationRule, object[] input)
  Parameters
transformationRuleGeneralTransformationRuleThe transformation rule for this computation mock
inputobject[]The input for this computation
Returns
- MockComputation
 The computation mock
Add<TIn>(GeneralTransformationRule<TIn>, TIn)
Creates a computation mock for the given transformation rule with the given input and the given context and adds the computation to the context
public MockComputation Add<TIn>(GeneralTransformationRule<TIn> transformationRule, TIn input) where TIn : class
  Parameters
transformationRuleGeneralTransformationRule<TIn>The transformation rule for this computation mock
inputTInThe input for this computation
Returns
- MockComputation
 The computation mock
Type Parameters
TIn
Add<TOut>(TransformationRuleBase<TOut>, object[], TOut)
Creates a computation mock for the given transformation rule with the given input and the given context and adds the computation to the context
public MockComputation Add<TOut>(TransformationRuleBase<TOut> transformationRule, object[] input, TOut output) where TOut : class
  Parameters
transformationRuleTransformationRuleBase<TOut>The transformation rule for this computation mock
inputobject[]The input for this computation
outputTOutThe output of the mock computation
Returns
- MockComputation
 The computation mock
Type Parameters
TOut
Add<TIn1, TIn2>(GeneralTransformationRule<TIn1, TIn2>, TIn1, TIn2)
Creates a computation mock for the given transformation rule with the given input and the given context and adds the computation to the context
public MockComputation Add<TIn1, TIn2>(GeneralTransformationRule<TIn1, TIn2> transformationRule, TIn1 input1, TIn2 input2) where TIn1 : class where TIn2 : class
  Parameters
transformationRuleGeneralTransformationRule<TIn1, TIn2>The transformation rule for this computation mock
input1TIn1The first input for this computation
input2TIn2The second input for this computation
Returns
- MockComputation
 The computation mock
Type Parameters
TIn1TIn2
Add<TIn, TOut>(TransformationRuleBase<TIn, TOut>, TIn, TOut)
Creates a computation mock for the given transformation rule with the given input and the given context and adds the computation to the context
public MockComputation Add<TIn, TOut>(TransformationRuleBase<TIn, TOut> transformationRule, TIn input, TOut output) where TIn : class where TOut : class
  Parameters
transformationRuleTransformationRuleBase<TIn, TOut>The transformation rule for this computation mock
inputTInThe input for this computation
outputTOutThe output for the mock computation
Returns
- MockComputation
 The computation mock
Type Parameters
TInTOut
Add<TIn1, TIn2, TOut>(TransformationRuleBase<TIn1, TIn2, TOut>, TIn1, TIn2, TOut)
Creates a computation mock for the given transformation rule with the given input and the given context and adds the computation to the context
public MockComputation Add<TIn1, TIn2, TOut>(TransformationRuleBase<TIn1, TIn2, TOut> transformationRule, TIn1 input1, TIn2 input2, TOut output) where TIn1 : class where TIn2 : class where TOut : class
  Parameters
transformationRuleTransformationRuleBase<TIn1, TIn2, TOut>The transformation rule for this computation mock
input1TIn1The first input for this computation
input2TIn2The second input for this computation
outputTOutThe output of the mock computation
Returns
- MockComputation
 The computation mock
Type Parameters
TIn1TIn2TOut