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
IPerformableThe performable item
actor
IHasNameThe actor
Returns
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
IPerformableWithResultThe performable item
actor
IHasNameThe actor
Returns
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
IHasNameThe actor
Returns
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