Пример #1
0
 public TakeScreenshotQuestion(
     IQuestion <TAbility, TAnswer> question,
     TakeScreenshot takeScreenshot)
 {
     _question       = question;
     _takeScreenshot = takeScreenshot;
 }
Пример #2
0
 public TakeScreenshotActionUnit(
     IAction <TResult> action,
     TakeScreenshot takeScreenshot)
 {
     _action         = action;
     _takeScreenshot = takeScreenshot;
 }
Пример #3
0
 public TakeScreenshotAction(
     IAction <TAbility, TResult> action,
     TakeScreenshot takeScreenshot)
 {
     _action         = action;
     _takeScreenshot = takeScreenshot;
 }
Пример #4
0
 private static TResult ExecuteTakeScreenshot <TResult, TAbility>(
     TAbility ability,
     IActor actor,
     Func <TResult> execute,
     TakeScreenshot takeScreenshot)
 {
     return(takeScreenshot.TakeScreenshotStrategy.ExecuteTakeScreenshot(
                ability,
                actor,
                execute,
                takeScreenshot.NextScreenshotName,
                takeScreenshot.ScreenshotObserver
                ));
 }