Table of Contents

Class PerformableExtensions

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

Extension methods for performable types

public static class PerformableExtensions
Inheritance
PerformableExtensions
Inherited Members

Methods

GetReportFragment(IPerformable, IHasName)

Gets a report fragment for the specified performable and actor

public static string GetReportFragment(this IPerformable performable, IHasName actor)

Parameters

performable IPerformable

The performable item

actor IHasName

The actor

Returns

string

Remarks

If the performable item does not implement ICanReport then a default fallback report will be produced and returned.

Exceptions

ArgumentNullException

If performable is null

GetReportFragment(IPerformableWithResult, IHasName)

Gets a report fragment for the specified performable and actor

public static string GetReportFragment(this IPerformableWithResult performable, IHasName actor)

Parameters

performable IPerformableWithResult

The performable item

actor IHasName

The actor

Returns

string

Remarks

If the performable item does not implement ICanReport then a default fallback report will be produced and returned.

Exceptions

ArgumentNullException

If performable is null

GetReportFragment<T>(IPerformableWithResult<T>, IHasName)

Gets a report fragment for the specified performable and actor

public static string GetReportFragment<T>(this IPerformableWithResult<T> performable, IHasName actor)

Parameters

performable IPerformableWithResult<T>

The performable item

actor IHasName

The actor

Returns

string

Type Parameters

T

The result type returned by the performable

Remarks

If the performable item does not implement ICanReport then a default fallback report will be produced and returned.

Exceptions

ArgumentNullException

If performable is null