/// <summary> /// Adds the <see cref="FileScreenshotConsumer"/> instance with the specified folder path creator. /// </summary> /// <param name="builder">The builder.</param> /// <param name="folderPathCreator">The folder path creator.</param> /// <returns>The <see cref="AtataContextBuilder{FileScreenshotConsumer}"/> instance.</returns> public static AtataContextBuilder <FileScreenshotConsumer> AddScreenshotFileSaving(this AtataContextBuilder builder, Func <string> folderPathCreator) { return(builder.AddScreenshotConsumer(new FileScreenshotConsumer(folderPathCreator))); }
/// <summary> /// Adds the <see cref="FileScreenshotConsumer"/> instance with the specified folder path. /// </summary> /// <param name="builder">The builder.</param> /// <param name="folderPath">The folder path.</param> /// <returns>The <see cref="AtataContextBuilder{FileScreenshotConsumer}"/> instance.</returns> public static AtataContextBuilder <FileScreenshotConsumer> AddScreenshotFileSaving(this AtataContextBuilder builder, string folderPath) { return(builder.AddScreenshotConsumer(new FileScreenshotConsumer(folderPath))); }