private void InitializeMessageProcessors()
 {
     this.stepValidateRequestProcessor           = new StepValidationProcessor(_stepRegistry);
     this.stepNameRequestProcessor               = new StepNameProcessor(_stepRegistry);
     this.refactorRequestProcessor               = new RefactorProcessor(_stepRegistry);
     this.cacheFileRequestProcessor              = new CacheFileProcessor(_loader);
     this.stubImplementationCodeRequestProcessor = new StubImplementationCodeProcessor();
     this.stepPositionsRequestProcessor          = new StepPositionsProcessor(_stepRegistry);
     this.stepNamesRequestProcessor              = new StepNamesProcessor(_stepRegistry);
 }
        public void ShouldProcessStepNamesRequest()
        {
            var mockStepRegistry = new Mock <IStepRegistry>();

            mockStepRegistry.Setup(r => r.GetStepTexts()).Returns(new List <string> {
                "step1", "step2", "step3"
            });
            var stepNamesProcessor = new StepNamesProcessor(mockStepRegistry.Object);
            var request            = new StepNamesRequest();
            var response           = stepNamesProcessor.Process(request);

            Assert.AreEqual(3, response.Steps.Count);
            Assert.AreEqual(response.Steps[0], "step1");
        }