private void afterStep(StepAttribute step) { rtb_Message.Dispatcher.Invoke(() => { rtb_Message.AppendText($"step:{step.Name} is complete \r"); }); proxy.Invoke("AfterStep", step.Id); }
public JobStep() { StepAttribute stepAttribute = GetType().GetCustomAttribute <StepAttribute>(); if (stepAttribute != null) { Type = stepAttribute.Name ?? GetType().Name; } }
private void beforeStep(StepAttribute step) { _current = step; rtb_Message.Dispatcher.Invoke(() => { rtb_Message.AppendText($"Current Running step:{step.Name} \r"); }); proxy.Invoke("BeforeStep", step.Id); }
public ActionStepMethod(MethodInfo info, StepAttribute attribute) { if (attribute is GivenAttribute) { stepType = StepType.Given; } if (attribute is WhenAttribute) { stepType = StepType.When; } if (attribute is ThenAttribute) { stepType = StepType.Then; } text = attribute.Text; methodInfo = info; }
public void SetStepCheckPoint(StepAttribute Step) { _currentStepCheckpoint = new StepCheckpoint <TStepCheckpoint>(Step); _stepCheckpoints.Add(_currentStepCheckpoint); }
public StepDefinition(Type type, MethodInfo method, StepAttribute attribute) { Type = type; Method = method; Attribute = attribute; }
public string GetAttribute(StepAttribute key) { return attributes[key]; }
public bool HasAttribute(StepAttribute key) { return attributes.ContainsKey(key); }
public string GetAttribute(StepAttribute key) { return(attributes[key]); }
public bool HasAttribute(StepAttribute key) { return(attributes.ContainsKey(key)); }
public StepCheckpoint(StepAttribute step) : base(step) { }
ActionStepMethod CreateActionStepMethod(MethodInfo info, StepAttribute stepAttribute) { return(new ActionStepMethod(info, stepAttribute)); }