public void Initialize() { ruleT1 = new TestRuleT1(); ruleT2 = new TestRuleT2(); voidT1 = new VoidTestRuleT1(); voidT2 = new VoidTestRuleT2(); transformation = new MockTransformation(ruleT1, ruleT2, voidT1, voidT2); context = new TransformationContext(transformation); }
public void Initialize() { ruleT1 = new TestRuleT1(); ruleT2 = new TestRuleT2(); ruleTN = new TestRuleTN(); transformation = new MockTransformation(ruleT1, ruleT2, ruleTN); pattern = new TestPattern(); transformation.Patterns.Add(pattern); context = new TransformationContext(transformation); }
public TracingTransformationContext(Transformation transformation) : base(transformation) { }
/// <summary> /// Creates a new transformation context for the given transformation /// </summary> /// <param name="transformation">The transformation, a context should be generated for</param> public ParallelTransformationContext(Transformation transformation) { if (transformation == null) throw new ArgumentNullException("transformation"); Transformation = transformation; trace = new TransformationContextTrace(this); }
public TaskParallelTransformationContext2(Transformation transformation) : base(transformation) { }
protected virtual ITransformationContext CreateContext(Transformation transformation) { return new MockContext(transformation); }
protected override ITransformationContext CreateContext(Transformation transformation) { return new TransformationContext(transformation); }