Пример #1
0
 private void afterStep(StepAttribute step)
 {
     rtb_Message.Dispatcher.Invoke(() =>
     {
         rtb_Message.AppendText($"step:{step.Name} is complete \r");
     });
     proxy.Invoke("AfterStep", step.Id);
 }
Пример #2
0
        public JobStep()
        {
            StepAttribute stepAttribute = GetType().GetCustomAttribute <StepAttribute>();

            if (stepAttribute != null)
            {
                Type = stepAttribute.Name ?? GetType().Name;
            }
        }
Пример #3
0
        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);
        }
Пример #4
0
        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;
        }
Пример #5
0
 public void SetStepCheckPoint(StepAttribute Step)
 {
     _currentStepCheckpoint = new StepCheckpoint <TStepCheckpoint>(Step);
     _stepCheckpoints.Add(_currentStepCheckpoint);
 }
Пример #6
0
 public StepDefinition(Type type, MethodInfo method, StepAttribute attribute)
 {
     Type      = type;
     Method    = method;
     Attribute = attribute;
 }
Пример #7
0
 public string GetAttribute(StepAttribute key) { return attributes[key]; }
Пример #8
0
 public bool HasAttribute(StepAttribute key) { return attributes.ContainsKey(key); }
Пример #9
0
 public string GetAttribute(StepAttribute key)
 {
     return(attributes[key]);
 }
Пример #10
0
 public bool HasAttribute(StepAttribute key)
 {
     return(attributes.ContainsKey(key));
 }
Пример #11
0
 public StepCheckpoint(StepAttribute step) : base(step)
 {
 }
Пример #12
0
 ActionStepMethod CreateActionStepMethod(MethodInfo info, StepAttribute stepAttribute)
 {
     return(new ActionStepMethod(info, stepAttribute));
 }