public void Extend(IRequestStatelessData target, WorkflowPosition currentPosition) { if (currentPosition == WorkflowPosition.Given) { target.GivenData = GivenData; } else if (currentPosition == WorkflowPosition.When) { target.WhenData = WhenData; } }
public void Extend(IRequestDataBeforeWhen target, WorkflowPosition workflowPosition) { target.Data = DataProvider.Data; }
public void Extend(IRequestDataByDefault target, WorkflowPosition workflowPosition) { target.Data = WorkflowExtensions.DataProvider.Data; }
public void Extend(IRequestData target, WorkflowPosition workflowPosition) { target.Data = Data; }
public void Extend(ISpecify target, WorkflowPosition currentPosition) { target.TypeRegistry.Register <ConcreteClass, IDummyInterface>(); }
public void Extend(IRequestDataBeforeThenIsCompleted target, WorkflowPosition workflowPosition) { target.Data = WorkflowExtensions.DataProvider.Data; }
/// <summary> /// Executes the code which actually extends the specified target. /// </summary> /// <param name="target"> /// The target to extend. /// </param> /// <param name="workflowPosition"></param> public void Extend(object target, WorkflowPosition workflowPosition) { this.Extend(target as TTargetType, workflowPosition); }
/// <summary> /// Executes the encapsulated extension for the given target instance. /// </summary> /// <param name="target">The target instance.</param> /// <param name="workflowPosition">The workflow position.</param> private void Extend(TTargetType target, WorkflowPosition workflowPosition) { this.Extension.Extend(target, workflowPosition); }
/// <summary> /// Configures before which step to run the extension. /// </summary> /// <param name="targetStep">The step before which to run the extension.</param> public void Before(WorkflowPosition targetStep) { this.WorkflowPosition = targetStep; }
public void Extend(IRequestStatefullData target, WorkflowPosition workflowPosition) { target.Data = this.data; this.data++; }