Table of Contents

Class SaveTheTextAsAnAssetBuilder

Namespace
CSF.Screenplay.Performables
Assembly
CSF.Screenplay.Abstractions.dll

A builder for customising the SaveAStreamAsAnAsset action.

public class SaveTheTextAsAnAssetBuilder : IGetsPerformable
Inheritance
SaveTheTextAsAnAssetBuilder
Implements
Inherited Members

Constructors

SaveTheTextAsAnAssetBuilder(string, string)

Initializes a new instance of the CopyFileAsAnAssetBuilder class.

public SaveTheTextAsAnAssetBuilder(string text, string filename)

Parameters

text string

The text which is to be saved.

filename string

The filename of the asset to create, including its extension, but without any path/dirctory information.

Methods

UsingTheEncoding(Encoding)

Picks the text encoding with which to save the text.

public SaveTheTextAsAnAssetBuilder UsingTheEncoding(Encoding encoding)

Parameters

encoding Encoding

The encoding to use

Returns

SaveTheTextAsAnAssetBuilder

A performable Action.

WithTheSummary(string)

Specifies a human-readable summary for the asset.

public SaveTheTextAsAnAssetBuilder WithTheSummary(string summary)

Parameters

summary string

A brief human-readable summary of the asset, which will not be used as a filename.

Returns

SaveTheTextAsAnAssetBuilder

A performable action