@@ -49,14 +49,14 @@ public IEnumerable<Story> CreateMixContainingEachTypeOfOutcomeWithOneScenarioPer
4949
5050 var stories = new List < Story >
5151 {
52- new Story ( storyMetadata1 , new Scenario ( typeof ( HappyPathScenario ) , GetHappyExecutionSteps ( ) , "Happy Path Scenario [for Happiness]" ) ) ,
53- new Story ( storyMetadata1 , new Scenario ( typeof ( SadPathScenario ) , GetFailingExecutionSteps ( ) , "Sad Path Scenario [for Happiness]" ) ) ,
54- new Story ( storyMetadata1 , new Scenario ( typeof ( SadPathScenario ) , GetInconclusiveExecutionSteps ( ) , "Inconclusive Scenario [for Happiness]" ) ) ,
55- new Story ( storyMetadata1 , new Scenario ( typeof ( SadPathScenario ) , GetNotImplementedExecutionSteps ( ) , "Not Implemented Scenario [for Happiness]" ) ) ,
56- new Story ( testThatReportWorksWithNoStory , new Scenario ( typeof ( HappyPathScenario ) , GetHappyExecutionSteps ( ) , "Happy Path Scenario [with no story]" ) ) ,
57- new Story ( testThatReportWorksWithNoStory , new Scenario ( typeof ( SadPathScenario ) , GetFailingExecutionSteps ( ) , "Sad Path Scenario [with no story]" ) ) ,
58- new Story ( testThatReportWorksWithNoStory , new Scenario ( typeof ( SadPathScenario ) , GetInconclusiveExecutionSteps ( ) , "Inconclusive Scenario [with no story]" ) ) ,
59- new Story ( testThatReportWorksWithNoStory , new Scenario ( typeof ( SadPathScenario ) , GetNotImplementedExecutionSteps ( ) , "Not Implemented Scenario [with no story]" ) ) ,
52+ new Story ( storyMetadata1 , new Scenario ( typeof ( HappyPathScenario ) , GetHappyExecutionSteps ( ) , "Happy Path Scenario [for Happiness]" , new List < string > ( ) ) ) ,
53+ new Story ( storyMetadata1 , new Scenario ( typeof ( SadPathScenario ) , GetFailingExecutionSteps ( ) , "Sad Path Scenario [for Happiness]" , new List < string > ( ) ) ) ,
54+ new Story ( storyMetadata1 , new Scenario ( typeof ( SadPathScenario ) , GetInconclusiveExecutionSteps ( ) , "Inconclusive Scenario [for Happiness]" , new List < string > ( ) ) ) ,
55+ new Story ( storyMetadata1 , new Scenario ( typeof ( SadPathScenario ) , GetNotImplementedExecutionSteps ( ) , "Not Implemented Scenario [for Happiness]" , new List < string > ( ) ) ) ,
56+ new Story ( testThatReportWorksWithNoStory , new Scenario ( typeof ( HappyPathScenario ) , GetHappyExecutionSteps ( ) , "Happy Path Scenario [with no story]" , new List < string > ( ) ) ) ,
57+ new Story ( testThatReportWorksWithNoStory , new Scenario ( typeof ( SadPathScenario ) , GetFailingExecutionSteps ( ) , "Sad Path Scenario [with no story]" , new List < string > ( ) ) ) ,
58+ new Story ( testThatReportWorksWithNoStory , new Scenario ( typeof ( SadPathScenario ) , GetInconclusiveExecutionSteps ( ) , "Inconclusive Scenario [with no story]" , new List < string > ( ) ) ) ,
59+ new Story ( testThatReportWorksWithNoStory , new Scenario ( typeof ( SadPathScenario ) , GetNotImplementedExecutionSteps ( ) , "Not Implemented Scenario [with no story]" , new List < string > ( ) ) ) ,
6060 new Story ( storyMetadata2 , GetScenarios ( true , true ) ) ,
6161 new Story ( storyMetadata3 , GetScenarios ( false , true ) ) ,
6262 } ;
@@ -118,26 +118,26 @@ private Scenario[] GetScenarios(bool includeFailingScenario, bool includeExample
118118 }
119119 return new List < Scenario >
120120 {
121- new Scenario ( exampleId , typeof ( ExampleScenario ) , GetExampleExecutionSteps ( ) , "Example Scenario" , exampleTable . ElementAt ( 0 ) , new List < StepArgument > ( ) ) ,
122- new Scenario ( exampleId , typeof ( ExampleScenario ) , exampleExecutionSteps , "Example Scenario" , exampleTable . ElementAt ( 1 ) , new List < StepArgument > ( ) )
121+ new Scenario ( exampleId , typeof ( ExampleScenario ) , GetExampleExecutionSteps ( ) , "Example Scenario" , exampleTable . ElementAt ( 0 ) , new List < StepArgument > ( ) , new List < string > ( ) ) ,
122+ new Scenario ( exampleId , typeof ( ExampleScenario ) , exampleExecutionSteps , "Example Scenario" , exampleTable . ElementAt ( 1 ) , new List < StepArgument > ( ) , new List < string > ( ) )
123123 } . ToArray ( ) ;
124124 }
125125
126126 return new List < Scenario >
127127 {
128- new Scenario ( typeof ( HappyPathScenario ) , GetHappyExecutionSteps ( ) , "Happy Path Scenario" ) ,
129- new Scenario ( typeof ( SadPathScenario ) , sadExecutionSteps , "Sad Path Scenario" )
128+ new Scenario ( typeof ( HappyPathScenario ) , GetHappyExecutionSteps ( ) , "Happy Path Scenario" , new List < string > ( ) ) ,
129+ new Scenario ( typeof ( SadPathScenario ) , sadExecutionSteps , "Sad Path Scenario" , new List < string > ( ) )
130130 } . ToArray ( ) ;
131131 }
132132
133133 private Scenario [ ] GetOneOfEachScenarioResult ( )
134134 {
135135 var scenarios = new List < Scenario >
136136 {
137- new Scenario ( typeof ( HappyPathScenario ) , GetHappyExecutionSteps ( ) , "Happy Path Scenario" ) ,
138- new Scenario ( typeof ( SadPathScenario ) , GetSadExecutionSteps ( ) , "Sad Path Scenario" ) ,
139- new Scenario ( typeof ( SadPathScenario ) , GetInconclusiveExecutionSteps ( ) , "Inconclusive Scenario" ) ,
140- new Scenario ( typeof ( SadPathScenario ) , GetNotImplementedExecutionSteps ( ) , "Not Implemented Scenario" )
137+ new Scenario ( typeof ( HappyPathScenario ) , GetHappyExecutionSteps ( ) , "Happy Path Scenario" , new List < string > ( ) ) ,
138+ new Scenario ( typeof ( SadPathScenario ) , GetSadExecutionSteps ( ) , "Sad Path Scenario" , new List < string > ( ) ) ,
139+ new Scenario ( typeof ( SadPathScenario ) , GetInconclusiveExecutionSteps ( ) , "Inconclusive Scenario" , new List < string > ( ) ) ,
140+ new Scenario ( typeof ( SadPathScenario ) , GetNotImplementedExecutionSteps ( ) , "Not Implemented Scenario" , new List < string > ( ) )
141141 } ;
142142
143143 // override specific step results - ideally this class could be refactored to provide objectmother/builder interface
0 commit comments