@@ -11,16 +11,15 @@ public static class BDDfyExtensions
1111 /// </summary>
1212 /// <param name="testObject">The test object representing a scenario.</param>
1313 /// <param name="scenarioTitle">Overrides the default scenario title and is displayed in the reports.</param>
14- /// <param name="reportFilename">Used for filename in Html reports. Has no effect on console reports.</param>
1514 /// <returns></returns>
16- public static Story BDDfy ( this object testObject , string scenarioTitle = null , string reportFilename = null )
15+ public static Story BDDfy ( this object testObject , string scenarioTitle = null )
1716 {
18- return testObject . LazyBDDfy ( scenarioTitle , reportFilename ) . Run ( ) ;
17+ return testObject . LazyBDDfy ( scenarioTitle ) . Run ( ) ;
1918 }
2019
21- public static Engine LazyBDDfy ( this object testObject , string scenarioTitle = null , string reportFilename = null )
20+ public static Engine LazyBDDfy ( this object testObject , string scenarioTitle = null )
2221 {
23- return InternalLazyBDDfy ( testObject , scenarioTitle , reportFilename ) ;
22+ return InternalLazyBDDfy ( testObject , scenarioTitle ) ;
2423 }
2524
2625 /// <summary>
@@ -29,24 +28,22 @@ public static Engine LazyBDDfy(this object testObject, string scenarioTitle = nu
2928 /// <typeparam name="TStory">The type representing the story.</typeparam>
3029 /// <param name="testObject">The test object representing a scenario.</param>
3130 /// <param name="scenarioTitle">Overrides the default scenario title and is displayed in the reports.</param>
32- /// <param name="reportFilename">Used for filename in Html reports. Has no effect on console reports.</param>
3331 /// <returns></returns>
34- public static Story BDDfy < TStory > ( this object testObject , string scenarioTitle = null , string reportFilename = null )
32+ public static Story BDDfy < TStory > ( this object testObject , string scenarioTitle = null )
3533 where TStory : class
3634 {
37- return testObject . LazyBDDfy < TStory > ( scenarioTitle , reportFilename ) . Run ( ) ;
35+ return testObject . LazyBDDfy < TStory > ( scenarioTitle ) . Run ( ) ;
3836 }
3937
40- public static Engine LazyBDDfy < TStory > ( this object testObject , string scenarioTitle = null , string reportFilename = null )
38+ public static Engine LazyBDDfy < TStory > ( this object testObject , string scenarioTitle = null )
4139 where TStory : class
4240 {
43- return InternalLazyBDDfy ( testObject , scenarioTitle , reportFilename , typeof ( TStory ) ) ;
41+ return InternalLazyBDDfy ( testObject , scenarioTitle , typeof ( TStory ) ) ;
4442 }
4543
4644 static Engine InternalLazyBDDfy (
4745 object testObject ,
4846 string scenarioTitle ,
49- string reportFilename ,
5047 Type explicitStoryType = null )
5148 {
5249 var testContext = TestContext . GetContext ( testObject ) ;
@@ -55,7 +52,7 @@ static Engine InternalLazyBDDfy(
5552 testContext . FluentScanner . GetScanner ( scenarioTitle , explicitStoryType ) :
5653 GetReflectiveScanner ( testContext , scenarioTitle , explicitStoryType ) ;
5754
58- return new Engine ( reportFilename , storyScanner ) ;
55+ return new Engine ( storyScanner ) ;
5956 }
6057
6158 static IScanner GetReflectiveScanner ( ITestContext testContext , string scenarioTitle = null , Type explicitStoryType = null )
0 commit comments