Esempio n. 1
0
        public StepNamesResponse Process(StepNamesRequest request)
        {
            var allSteps          = _stepRegistry.GetStepTexts();
            var stepNamesResponse = new StepNamesResponse();

            stepNamesResponse.Steps.AddRange(allSteps);
            return(stepNamesResponse);
        }
Esempio n. 2
0
        private static Message GetStepNamesResponseMessage(IEnumerable <string> allSteps, Message request)
        {
            var stepNamesResponse = StepNamesResponse.CreateBuilder().AddRangeSteps(allSteps).Build();

            return(Message.CreateBuilder()
                   .SetMessageId(request.MessageId)
                   .SetMessageType(Message.Types.MessageType.StepNamesResponse)
                   .SetStepNamesResponse(stepNamesResponse).Build());
        }
 private static Message GetStepNamesResponseMessage(IEnumerable<string> allSteps, Message request)
 {
     var stepNamesResponse = new StepNamesResponse();
     stepNamesResponse.Steps.AddRange(allSteps);
     return new Message
     {
         MessageId = request.MessageId,
         MessageType = Message.Types.MessageType.StepNamesResponse,
         StepNamesResponse = stepNamesResponse
     };
 }