/// <summary> /// Sets the <see cref="AtataContext"/> Artifacts folder as the folder path of the file screenshot consumer. /// </summary> /// <param name="builder">The builder.</param> /// <returns>The <see cref="AtataContextBuilder{FileScreenshotConsumer}"/> instance.</returns> public static AtataContextBuilder <NLogFileConsumer> WithArtifactsFolderPath(this AtataContextBuilder <NLogFileConsumer> builder) => builder.WithFolderPath(x => x.Artifacts.FullName);
/// <summary> /// Specifies the folder path of the log file. /// </summary> /// <param name="builder">The builder.</param> /// <param name="folderPath">The folder path.</param> /// <returns>The <see cref="AtataContextBuilder{TContext}"/> instance.</returns> public static AtataContextBuilder <NLogFileConsumer> WithFolderPath(this AtataContextBuilder <NLogFileConsumer> builder, string folderPath) { folderPath.CheckNotNullOrWhitespace(nameof(folderPath)); return(builder.WithFolderPath(_ => folderPath)); }
/// <summary> /// Sets the <see cref="AtataContext"/> Artifacts folder as the folder path of the file screenshot consumer. /// </summary> /// <param name="builder">The builder.</param> /// <returns>The <see cref="AtataContextBuilder{FileScreenshotConsumer}"/> instance.</returns> public static AtataContextBuilder <FileScreenshotConsumer> WithArtifactsFolderPath(this AtataContextBuilder <FileScreenshotConsumer> builder) => builder.WithFolderPath(() => AtataContext.Current.Artifacts.FullName.Value);