コード例 #1
0
 public StubGenerator(ScenarioInterpreter scenarioInterpreter, ImplementationHelper implementationHelper, ITextWriter suggestionWriter, IStoryContextFactory contextFactory)
 {
     _scenarioInterpreter = scenarioInterpreter;
     SuggestionWriter = suggestionWriter;
     _contextFactory = contextFactory;
     _implementationHelper = implementationHelper;
 }
コード例 #2
0
ファイル: StubGenerator.cs プロジェクト: pawelpabich/storevil
 public StubGenerator(ScenarioInterpreter scenarioInterpreter, ImplementationHelper implementationHelper, ITextWriter suggestionWriter, ISessionContext context)
 {
     _scenarioInterpreter = scenarioInterpreter;
     SuggestionWriter = suggestionWriter;
     _context = context;
     _implementationHelper = implementationHelper;
 }
コード例 #3
0
        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;
        }