public StubGenerator(ScenarioInterpreter scenarioInterpreter, ImplementationHelper implementationHelper, ITextWriter suggestionWriter, IStoryContextFactory contextFactory) { _scenarioInterpreter = scenarioInterpreter; SuggestionWriter = suggestionWriter; _contextFactory = contextFactory; _implementationHelper = implementationHelper; }
public StubGenerator(ScenarioInterpreter scenarioInterpreter, ImplementationHelper implementationHelper, ITextWriter suggestionWriter, ISessionContext context) { _scenarioInterpreter = scenarioInterpreter; SuggestionWriter = suggestionWriter; _context = context; _implementationHelper = implementationHelper; }
public void CouldNotInterpret(Scenario scenario, string line) { Output("Could not interpret:\r\n" + line); var suggestion = new ImplementationHelper().Suggest(line); Output("You could try the following:"); Output(suggestion); Result = TaskResult.Skipped; }