Table of Contents

Class PerforamableBuilder

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

Static helper class used to create/build instances of the performables which are bundled with Screenplay.

public static class PerforamableBuilder
Inheritance
PerforamableBuilder
Inherited Members

Remarks

Tip: Consume the members of this class via:

using static CSF.Screenplay.PerforamableBuilder;

This will allow you use the method names in this class in a more human-readable fashion.

Methods

CopyTheFile(string)

Gets a builder for an Action which copies a file at the specified source path into the assets for the current performance.

public static CopyFileAsAnAssetFilenameBuilder CopyTheFile(string path)

Parameters

path string

The path to the source file which should be copied

Returns

CopyFileAsAnAssetFilenameBuilder

A builder to specify the name of the asset.

ReadTheStopwatch()

Gets a performable which reads the stopwatch.

public static ReadTheStopwatch ReadTheStopwatch()

Returns

ReadTheStopwatch

Remarks

Use of this performable requires the actor has the UseAStopwatch ability, for accurately measuring time, during the course of a performance.

ResetTheStopwatch()

Gets a performable which resets the stopwatch to zero.

public static ResetTheStopwatch ResetTheStopwatch()

Returns

ResetTheStopwatch

Remarks

Use of this performable requires the actor has the UseAStopwatch ability, for accurately measuring time, during the course of a performance.

SaveTheStream(Stream)

Gets a builder for an Action which saves a stream of data into the assets for the current performance.

public static SaveStreamAsAnAssetFilenameBuilder SaveTheStream(Stream stream)

Parameters

stream Stream

The stream which should be saved as an asset.

Returns

SaveStreamAsAnAssetFilenameBuilder

A builder to specify the name of the asset.

SaveTheText(string)

Gets a builder for an Action which saves some text into an asset file for the current performance.

public static SaveTheTextAsAnAssetFilenameBuilder SaveTheText(string text)

Parameters

text string

The text which should be saved as an asset.

Returns

SaveTheTextAsAnAssetFilenameBuilder

A builder to specify the name of the asset.

StartTheStopwatch()

Gets a performable which starts the stopwatch.

public static StartTheStopwatch StartTheStopwatch()

Returns

StartTheStopwatch

Remarks

Use of this performable requires the actor has the UseAStopwatch ability, for accurately measuring time, during the course of a performance.

StopTheStopwatch()

Gets a performable which stops the stopwatch.

public static StopTheStopwatch StopTheStopwatch()

Returns

StopTheStopwatch

Remarks

Use of this performable requires the actor has the UseAStopwatch ability, for accurately measuring time, during the course of a performance.