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
textstringThe text which is to be saved.
filenamestringThe 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
encodingEncodingThe encoding to use
Returns
- SaveTheTextAsAnAssetBuilder
A performable Action.
WithTheSummary(string)
Specifies a human-readable summary for the asset.
public SaveTheTextAsAnAssetBuilder WithTheSummary(string summary)
Parameters
summarystringA brief human-readable summary of the asset, which will not be used as a filename.
Returns
- SaveTheTextAsAnAssetBuilder
A performable action