SetStartTextsToHaveSectionOpen() public méthode

public SetStartTextsToHaveSectionOpen ( ) : void
Résultat void
Exemple #1
0
 /// <summary>
 /// New behaviour factory method
 /// </summary>
 /// <param name="businessValue">text describing the business value</param>
 /// <param name="targetApplicationLayer">project folder name containing target test class implementations</param>
 /// <param name="loggers">instance of loggers</param>
 /// <returns>new behaviour instance</returns>
 public static Behaviour SoThat(string businessValue, string targetApplicationLayer, Loggers loggers)
 {
     string testName = GetTestName();
     loggers.SetStartTextsToEmphasise("I want", "So that", "As", "Given", "When", "Then", "And");
     loggers.SetStartTextsToHaveSectionOpen("As");
     return new Behaviour(targetApplicationLayer, loggers, testName, businessValue);
 }
Exemple #2
0
 /// <summary>
 /// New behaviour factory method
 /// </summary>
 /// <param name="businessValue">text describing the business value</param>
 /// <param name="targetApplicationLayer">project folder name containing target test class implementations</param>        
 /// <param name="appRunner">your page object model instance or other to operate the application</param>
 /// <param name="loggers">instance of loggers</param>
 /// <param name="preStepAction"> </param>
 /// <returns>new behaviour instance</returns>
 public static Behaviour SoThat(string businessValue, string targetApplicationLayer, object appRunner, Loggers loggers, Action preStepAction = null)
 {
     string testName = GetTestName();
     loggers.SetStartTextsToEmphasise("I want", "So that", "As", "Given", "When", "Then", "And");
     loggers.SetStartTextsToHaveSectionOpen("As");
     var behaviour = new Behaviour(targetApplicationLayer, appRunner, loggers, testName, businessValue, preStepAction);
     return behaviour;
 }