Class SaveStreamAsAnAssetBuilder
- Namespace
- CSF.Screenplay.Performables
- Assembly
- CSF.Screenplay.Abstractions.dll
A builder for customising the SaveAStreamAsAnAsset action.
public class SaveStreamAsAnAssetBuilder : IGetsPerformable
- Inheritance
-
SaveStreamAsAnAssetBuilder
- Implements
- Inherited Members
Constructors
SaveStreamAsAnAssetBuilder(Stream, string)
Initializes a new instance of the CopyFileAsAnAssetBuilder class.
public SaveStreamAsAnAssetBuilder(Stream stream, string filename)
Parameters
streamStreamThe stream which is to be saved.
filenamestringThe filename of the asset to create, including its extension, but without any path/dirctory information.
Methods
WithTheSummary(string)
Gets a performable action, specifying a short human-readable summary of the asset.
public SaveAStreamAsAnAsset WithTheSummary(string summary)
Parameters
summarystringA brief human-readable summary of the asset, which will not be used as a filename.
Returns
- SaveAStreamAsAnAsset
A performable action