Example #1
0
 public Step(IProject project, ITextSnapshotLine inputLine, IGaugeServiceClient gaugeServiceClient)
 {
     _project            = project;
     _gaugeServiceClient = gaugeServiceClient;
     ContainingLine      = inputLine;
     _stepValueFromInput = new Lazy <ProtoStepValue>(() => _gaugeServiceClient.GetStepValueFromInput(_project.VsProject, GetStepText(inputLine)));
     _text       = new Lazy <string>(() => _stepValueFromInput.IsValueCreated ? _stepValueFromInput.Value.ParameterizedStepValue : null);
     _parameters = new Lazy <List <string> >(() => _stepValueFromInput.IsValueCreated ? _stepValueFromInput.Value.Parameters.ToList() : null);
 }
Example #2
0
        public Step(IProject project, ITextSnapshotLine inputLine, IGaugeServiceClient gaugeServiceClient)
        {
            _project            = project;
            _gaugeServiceClient = gaugeServiceClient;
            ContainingLine      = inputLine;
            var stepValueFromInput = _gaugeServiceClient.GetStepValueFromInput(_project.VsProject, GetStepText(inputLine));

            if (stepValueFromInput == null)
            {
                return;
            }

            Text       = stepValueFromInput.ParameterizedStepValue;
            Parameters = stepValueFromInput.Parameters.ToList();
        }