Interface ISpec
Non-generic interface for specs, allowing type-erased usage.
public interface ISpec
Properties
this[string]
Indexer to get/set operations by name.
IOperation this[string name] { get; set; }
Parameters
namestring
Property Value
Operations
The operations registered in this spec.
IEnumerable<IOperation> Operations { get; }
Property Value
Methods
Add(IOperation)
Registers an operation with this spec.
void Add(IOperation operation)
Parameters
operationIOperation
CreateTestingContext(string)
Creates a new testing context for this spec.
TestingContext CreateTestingContext(string testDirectoryPath = null)
Parameters
testDirectoryPathstringOptional path for test output.
Returns
- TestingContext
A new testing context.
GetOperation(string)
Gets an operation by name.
IOperation GetOperation(string name)
Parameters
namestring
Returns
GetOperationName(IOperation)
Gets the name the given operation was registered under.
string GetOperationName(IOperation operation)
Parameters
operationIOperation